Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Sonstige Werkzeuge (https://www.delphipraxis.net/63-sonstige-werkzeuge/)
-   -   Documentation Insight mit $IF in uses ? (https://www.delphipraxis.net/178345-documentation-insight-mit-%24if-uses.html)

himitsu 3. Jan 2014 03:08

Documentation Insight mit $IF in uses ?
 
Documentation Insight Express 2.1.8.25 (X3) scheint einige Probleme mit {$IF ...} zu haben und raucht mit einem Parsing-Error ab,
bzw. es arbeitet dann nicht mehr, weil es plötzlich denkt schon in IMPLEMENTATION zu sein, wo die Express-Edition nicht arbeiten will.

Delphi-Quellcode:
uses
  {$IF CompilerVersion >= 23} // Delphi XE2
    Winapi.Windows, System.RTLConsts, System.SysUtils, System.StrUtils, System.Classes, System.Math, System.Generics.Defaults, System.Generics.Collections;
  {$ELSE}
    Windows, RTLConsts, SysUtils, StrUtils, Classes, Math, Generics.Defaults, Generics.Collections;
  {$IFEND}
Es ist dabei egal, wo und wie ich das USES und ; verteile, es raucht immer ab und der Editor deaktiviert sich.



Ist das jetzt nur ein Bug in der "alten" Version?
Und gibt es evntuell ein Update für solche alte Delphis?

Aktuell hab ich einfach alles auskommentiert und nur die XE2+-Version drin, solange ich entwickle. (aber es wäre bestimmt nett das nicht ständig umkommentieren zu müssen)

Daniel 3. Jan 2014 07:31

AW: Documentation Insight mit $IF in uses ?
 
Ich hatte einen ähnlichen Fall. Mache ein Minimal-Beispiel und sende es denen. Ich hatte binnen 48 Stunden eine Korrektur und man war sogar dankbar, dass ein Fehler behoben werden konnte.

himitsu 3. Jan 2014 15:46

AW: Documentation Insight mit $IF in uses ?
 
Dann muß ich daraus nur noch eine nette eMail mit englischer und verständlicher Beschreibung machen.
Ich geh erstmal was essen ... hab ich heute irgendwie vergessen.

Code:
unit Unit1;

interface

uses
  {$IF CompilerVersion >= 23} // Delphi XE2
    Winapi.Windows, System.RTLConsts, System.SysUtils, System.StrUtils, System.Classes, System.Math, System.Generics.Defaults, System.Generics.Collections;
  {$ELSE}
    Windows, RTLConsts, SysUtils, StrUtils, Classes, Math, Generics.Defaults, Generics.Collections;
  {$IFEND}

type
  TTest = class

  end;

implementation

end.


TTest
> Tip: All non-public code elements cannot be documented in the Express Edition


Parser Logs
> 9:  5    'Implementation' expected found 'Windows'
> 9:  5    InvalidInitializationSection found Windows
> 9:  5    'Point' expected found 'Windows'


uses
  {$IF CompilerVersion >= 23} // Delphi XE2
    Winapi.Windows, System.RTLConsts, System.SysUtils, System.StrUtils, System.Classes, System.Math, System.Generics.Defaults, System.Generics.Collections
  {$ELSE}
    Windows, RTLConsts, SysUtils, StrUtils, Classes, Math, Generics.Defaults, Generics.Collections
  {$IFEND};


{$IF CompilerVersion >= 23} // Delphi XE2
  uses
    Winapi.Windows, System.RTLConsts, System.SysUtils, System.StrUtils, System.Classes, System.Math, System.Generics.Defaults, System.Generics.Collections;
{$ELSE}
  uses
    Windows, RTLConsts, SysUtils, StrUtils, Classes, Math, Generics.Defaults, Generics.Collections;
{$IFEND}


Alle Zeitangaben in WEZ +1. Es ist jetzt 08:12 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