RomanYankovsky / DelphiAST

Abstract syntax tree builder for Delphi
Mozilla Public License 2.0
271 stars 116 forks source link

FreePascal demo is not working #309

Open yonist opened 3 years ago

yonist commented 3 years ago
  1. Missing StringBuilderUnit from the project
  2. Missing CommentsBox from the lfm of uMainForm
  3. After adding the missing ListBox I get an exception, I keep getting 'StackOverflow' Exception. No matter which file I parse.
RomanYankovsky commented 3 years ago

@Wosi can you please take a look?

JulStrat commented 3 years ago

Quick patch (FPC - 3.0.4, Lazarus - 2.0.6, OS - Vista 32bit) File Demo - Parser - uMainForm.pas Line 45: //{$IFNDEF FPC} {$R .dfm} //{$ELSE} // {$R .lfm} //{$ENDIF}

Line 87: StringStream: TMemoryStream; //TStringStream;

Line 110: StringStream := TMemoryStream.Create; //TStringStream.Create;

UPDATE Working Lazarus LFM file: uMainForm.lfm.zip