View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0020623LazarusIDEpublic2011-11-04 18:122013-05-01 16:05
ReporterAlexander Shishkin 
Assigned ToMattias Gaertner 
PrioritynormalSeverityminorReproducibilityN/A
StatusfeedbackResolutionopen 
PlatformOSOS Version
Product VersionProduct Build 
Target VersionFixed in Version 
Summary0020623: [Codetools] support for helpres
DescriptionCodetools can not parse class|record helper syntax so they are unusable if class helpers are defined somewhere in the code.
TagsNo tags attached.
Fixed in Revision
LazTarget-
Widgetset
Attached Filespatch file icon class_helpers.patch [^] (10,476 bytes) 2012-08-06 22:47 [Show Content]
patch file icon class_helpers_final.patch [^] (27,255 bytes) 2012-08-18 19:14 [Show Content]

- Relationships
related to 0024164assignedMattias Gaertner SVN r40656 : CodeTools doesn't recognize type helpers thus adding handlers to events fails. 
has duplicate 0020179resolvedMattias Gaertner IDE code complete does not work with class \ record helpers. 

-  Notes
(0053808)
Mattias Gaertner (manager)
2011-11-04 22:20

Can you provide an example?
Maybe the FPC tests have some.
(0053809)
Alexander Shishkin (reporter)
2011-11-04 22:41

Yes FPC has some tests. f.e.

program tchlp25;

{$mode delphi}

type
  TObjectHelper = class helper for TObject
  end;

  TTest = class
  end;

  TTestHelper = class helper(TObjectHelper) for TTest
  end;

begin

end.

program trhlp23;

{$ifdef fpc}
  {$mode objfpc}
  {$modeswitch advancedrecords}
{$endif}

type
  TTest = record

  end;

  TTestHelper = record helper for TTest
  end;

  TTestHelperSub = record helper(TTestHelper) for TTest
  end;

begin
end.
(0056179)
Mattias Gaertner (manager)
2012-01-31 03:28

Parsing now works.
(0056189)
Sven Barth (manager)
2012-01-31 11:56

@Mattias: The FPC tests are named thlp*.pp, tchlp*.pp and trhlp*.pp in the tests\test directory (just in case).

Regards,
Sven
(0061701)
Anton (reporter)
2012-08-18 19:14

ignore class_helpers.patch, review class_helpers_final.patch
(0067327)
Juha Manninen (developer)
2013-05-01 15:55
edited on: 2013-05-01 16:05

I am going through patches in reports.

Anton, I guess your patch is not valid any more. One chunk failed and other chunks succeeded with huge offsets.
Mattias has improved parsing without patches. Code completion works pretty well, too.


- Issue History
Date Modified Username Field Change
2011-11-04 18:12 Alexander Shishkin New Issue
2011-11-04 22:20 Mattias Gaertner Note Added: 0053808
2011-11-04 22:20 Mattias Gaertner Status new => assigned
2011-11-04 22:20 Mattias Gaertner Assigned To => Mattias Gaertner
2011-11-04 22:41 Alexander Shishkin Note Added: 0053809
2012-01-31 01:35 Mattias Gaertner Relationship added has duplicate 0020179
2012-01-31 03:28 Mattias Gaertner Note Added: 0056179
2012-01-31 11:56 Sven Barth Note Added: 0056189
2012-08-06 22:47 Anton File Added: class_helpers.patch
2012-08-18 19:14 Anton File Added: class_helpers_final.patch
2012-08-18 19:14 Anton Note Added: 0061701
2013-05-01 15:22 Juha Manninen Relationship added related to 0024164
2013-05-01 15:55 Juha Manninen Note Added: 0067327
2013-05-01 15:55 Juha Manninen LazTarget => -
2013-05-01 15:55 Juha Manninen Status assigned => feedback
2013-05-01 15:56 Juha Manninen Note Edited: 0067327 View Revisions
2013-05-01 16:05 Juha Manninen Note Edited: 0067327 View Revisions



MantisBT 1.2.12[^]
Copyright © 2000 - 2012 MantisBT Group
Powered by Mantis Bugtracker