Codetool fails to parse vaild code / reproducible, codetool hangs on error in comment
Original Reporter info from Mantis: Martin @martin_frb
-
Reporter name: Martin Friebe
Original Reporter info from Mantis: Martin @martin_frb
- Reporter name: Martin Friebe
Description:
Codetool can take an identifier from within a comment, and look up/ jump to where it is declared.
But that can leave codetools, believing the source code of the unit is broken. And further navigation will keep failing. Codetools will report that the comment is not valid code.
//class function CreateProcSymbol(ACompilationUnit: TDwarfCompilationUnit;
// AInfo: PDwarfAddressInfo; AAddress: TDbgPtr): TDbgDwarfSymbolBase; override;
Try to look up CreateProcSymbol
After that jump to implementation on a function (not comment) further down in the code will always get:
fpdbgdwarffreepascal.pas(25,38) Error: bracket ) not found
To reproduce (tested with rev 60971 / should be valid so long as no changes to fpdebug are committed)
Project open:
components\lazdebuggers\lazdebuggerfp\test\LazDebFpTest.lpr
Unit to reproduce with:
components\fpdebug\fpdbgdwarffreepascal.pas
line 25
Try find declaration (alt up) of CreateProcSymbol
in the comment. Codetool will give the mentioned error.
Go to line 33
class function HandleCompUnit(...
try to go to implementation
You get the same error again.
(It works, if you skipped the look up on the comment)
Mantis conversion info:
- Mantis ID: 35379
- OS: win 10
- OS Build: 10
- Platform: 64bit Intel
- Version: 2.1 (SVN)