Search code examples
delphidelphi-xe8

The IDE hangs when "|" is present in the source code. Is it a bug in Delphi XE8?


Whenever I type a "|" (vertical bar) in source editor, the Delphi IDE starts to hang.

I tried to add the "|" in my source code via notepad before opening my project with Delphi then it seems that the IDE is hanging while opening the project.

Example 1 (This will work):

procedure TForm8.FormCreate(Sender: TObject);
begin
  if 1 = 1 then
    ShowMessage('True');
end;

Example 2 (This will not work):

procedure TForm8.FormCreate(Sender: TObject);
begin
  if 1 = 1 then || "1" = "1" then //Whenever I start typing the "|", the IDE starts to hang.
    ShowMessage('True');
end;

Note: The Delphi IDE is not hanging with my project after I removed the "|" (vertical bar) in my source code through notepad (before opening the project with Delphi).


Solution

  • Yes, this is a bug and unfortunately only fixed in the subscription update.

    You need to turn off Castalia if you don't have that update.