Einzelnen Beitrag anzeigen

Benutzerbild von GPRSNerd
GPRSNerd

Registriert seit: 30. Dez 2004
Ort: Ruhrpott
239 Beiträge
 
Delphi 10.4 Sydney
 
#2

AW: Falsche Zeichen in Projektdatei

  Alt 13. Sep 2018, 14:14
Ist ein Fehler, den ich seit gefühlten 10 Delphi-IDE-Versionen mal mehr oder mal weniger habe.
Tritt bei mir häufiger auf, wenn ich ein großes Package mit etlichen Komponenten-Projekten builde.
Ich habe leider nie herausfinden können, wann oder wodurch es auftritt...

Hier ist was dazu in den Emba-Foren:
https://forums.embarcadero.com/threa...hreadID=266432

Aha:

Zitat:
As Olivier said, this is caused by a mix of CR and CRLF line terminators in the file.

To fix it, here is what I did.

1. I opened the file in 32-bit non-Unicode notepad (this was a bit ago). The CR breaks did not resolve, and the lines were merged together.
2. Hit enter where the line break should be. That put the CRLF in the correct place.
3. Saved

It is very beneficial if you can see this in a separate text editor that shows different characters between CR and CRLF; maybe Notepad++?. In my case, I didn't have one, but the file compare in TortoiseGit would show the CR as a straight-down arrow and the CRLF as a bent arrow.
Stefan

Geändert von GPRSNerd (13. Sep 2018 um 14:17 Uhr)
  Mit Zitat antworten Zitat