Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Die Delphi-IDE (https://www.delphipraxis.net/62-die-delphi-ide/)
-   -   Quelltest von Packages ändert sich (requires wird zu rrequires) (https://www.delphipraxis.net/214529-quelltest-von-packages-aendert-sich-requires-wird-zu-rrequires.html)

norwegen60 24. Jan 2024 17:53

Quelltest von Packages ändert sich (requires wird zu rrequires)
 
Hallo zusammen,

ich bin am Einrichten von Delphi 12 und da GetIt nicht verfügbar ist und ich so auch bessere Möglichkeiten habe, eine geordnete Ablage zu bekommen, erstelle ich die Packages manuell.
Hierbei habe ich das seltsame Phänomen, dass der Quelltext von manchen .dpk Dateien sich ändert wenn ich den Optionen die Verzeichnisse anpasse.
Die Veränderung ist immer dieselbe
  • requires wird zu rrequires
  • contains wird zu ocontains
  • end.wird zu d.
Sieht dann so aus
Delphi-Quellcode:
rrequires
  rtl,
  vcl,
  designide,
  Jcl,
  JclVcl,
  JclBaseExpert;

ocontains
  JclIdeOpenDlgFavoriteUnit in '..\..\experts\favfolders\JclIdeOpenDlgFavoriteUnit.pas';

d.
wenn ich es korrigiere ist alles gut
Es sind nicht alle Dateien einer Projektgruppe betroffen, aber viele
Ich hatte das Phänomen auch schon mit Delphi 11

Und vielleicht noch eine andere Frage diesbezüglich:
Gibt es eine Möglichkeit, z.B. das Ausgabeverzeichnis für alle Packages in einer Projektgruppe auf einmal zu ändern?

Danke und Grüße
Gerd

himitsu 24. Jan 2024 18:04

AW: Quelltest von Packages ändert sich (requires wird zu rrequires)
 
https://quality.embarcadero.com/brow...22rrequires%22

Spontan würde ich dir mal raten auf die Zeilenumbrüche oder unsichtbare Sonderzeichen zu achten.

Kas Ob. 25. Jan 2024 08:33

AW: Quelltest von Packages ändert sich (requires wird zu rrequires)
 
Hi,
Zitat:

Zitat von norwegen60 (Beitrag 1532513)
Ich hatte das Phänomen auch schon mit Delphi 11

Yes, this is common in XE8 too, the same exact corruption as you descripted it.
There is a less frequent bug with console projects, where keywords like "program" and the "end." get corrupted/altered too, but it is very rare.

Don't have a concise reproducing steps because it is not consistent, but from observation it happens sometimes when :
1) if the dpk file is changed/edited without saving and you clicked install/build and there where i missing package in the requires section, the IDE should add the missing one, and here it might do that crazy stuff, well it is not that much crazy as it is the same every time.
2) if you added a package by hand in the dpk file and clicked source format.
3) when there is directives and/or comments inside the requires clause in the dpk, also clicked build or something..
...
these the common situation i noticed.

Kas Ob. 25. Jan 2024 08:40

AW: Quelltest von Packages ändert sich (requires wird zu rrequires)
 
Remembered one more when refactoring and renaming stuff:

Sometimes happen when renaming a package in project group and this package is used in another packages or projects in the same project group.

haentschman 25. Jan 2024 08:43

AW: Quelltest von Packages ändert sich (requires wird zu rrequires)
 
Hi..😎

das hatte ich auch mit dem Refactoring... :?

PS:
"Quelltest" :zwinker:

himitsu 25. Jan 2024 09:09

AW: Quelltest von Packages ändert sich (requires wird zu rrequires)
 
PS: Eine Quelle der Freude :stupid:

Kas Ob. 25. Jan 2024 10:02

AW: Quelltest von Packages ändert sich (requires wird zu rrequires)
 
Zitat:

Zitat von himitsu (Beitrag 1532536)
PS: Eine Quelle der Freude :stupid:

Every time i read the German word "Freude" the first thing comes to my mind is Sigmund Freud, :stupid:
May be i need to make a visit to an expert on the matter. :gruebel:


Alle Zeitangaben in WEZ +1. Es ist jetzt 15:39 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz