RAD Studio RAD Studio 10.4.2 is now available with possible cure for the "Blue Dot Problem"

FireWind

Свой
Регистрация
2 Дек 2005
Сообщения
1,957
Реакции
1,203
Credits
4,034
RAD Studio 10.4.2 is now available with possible cure for the "Blue Dot Problem"
February 27, 2021 By Darian Miller

If you are long-time Delphi user then you probably know what I mean when I reference the "Blue Dot Problem". For those that do not, I will start with an example.

The blue dots displayed in the editor gutter area represent executable lines of code that you can step through with the debugger and set breakpoints on. You should be able to quickly notice the Blue Dot problem in the image below. The blue dots should start on the first begin statement and there should obviously be a dot on the last ShowMessage line. There is also a trailing blue dot on empty line number 38. This is because the entire set of blue dots in this code snippet has been shifted one line down.
1614532723941.png
Why do these Blue Dot Problems occur? There are a wide number of issues that have been blamed over the years. However, one of the major underlying causes is due to the compiler only recognizing the "Windows" line end combination of Carriage Return+Line Feed (CRLF) pairs. Other major systems like Linux, macOS only use a single LF character to end a line of text so if you are sharing source files between these systems, then those files may end up being problematic for the Delphi compiler. Sometimes a file gets corrupted and is full of proper CRLF delimited text and only a line or two has a single CR or LF line ending character. (Note that this is a very old problem that has plagued many applications and not just the Delphi editor and compiler.)

This is one of the Для просмотра ссылки Войди или Зарегистрируйся with the recent RAD Studio 10.4.2 Sydney release. There have been many reports of this Blue Dots Problem over the years with Для просмотра ссылки Войди или Зарегистрируйся being an example of the specific error above. The solution for many of these Blue Dot Problems is a new Line Endings configuration option to handle "Inconsistent line endings" with the default choice of "Convert files with known extensions to CRLF" This new setting is available in the Tools->Options menu under the User Interface->Editor section. You can currently select from the following choices:
  • Preserve
  • Convert all files to CRLF
  • Convert file with known extensions to CRLF
  • Ask
The current list of Known extensions include:
  • pas;dpr;dpk;inc;dfm;xfm;fmx;lfm;nfm;dpkw;cpp;c;cc;hpp;h;hh;cxx;hxx;bpkw;i
1614532747231.png
With the introduction of 10.4.2, the number of times that the Blue Dots displayed in your editor are out of sync with the lines of source code should rapidly diminish! Huzzah! Kudos to Embarcadero for addressing this definitely sporadic, but infinitely annoying problem.