View Issue Details

IDProjectCategoryView StatusLast Update
0029532LazarusIDEpublic2020-03-21 00:22
ReporterCyraxAssigned ToMattias Gaertner 
PrioritynormalSeverityminorReproducibilityalways
Status assignedResolutionopen 
PlatformWindows OSServer 2008 R2OS Version6.1.7601 (SP1)
Product Version1.5 (SVN)Product Buildr51428 
Target VersionFixed in Version 
Summary0029532: [codetools] "Find declaration" or "Complete code" inside nested type (specialized nested generic type).
DescriptionDoing "Find delcaration" or "Complete code" inside nested type (specialized nested generic type) causes codetools to repot this error: <code>project1.lpr(25,41) Error: expected ), but TGenericTest found</code>.

See attached project for example test, Steps To Reproduce and Additional Information for more info.
Steps To Reproduce1. Open attached project in Lazarus.
2. Go to line 25, column 58 and execute either "Find declaration" or "Complete code" command.
3. Observe the error message.
Additional InformationFPC and Lazarus was built with these commands:

Lazarus revision 51428 
FPC revision 33009 
 
FPC make commands: 
clean
all
install
OPT=-gw2 -godwarfsets -godwarfmethodclassprefix -gl -O- -Xs- -Si- -vbq -dTEST_WIN32_SEH
COMPILER_OPTIONS=-gw2 -godwarfsets -godwarfmethodclassprefix -gl -O- -Xs- -Si- -vbq -dTEST_WIN32_SEH
OS_TARGET=win32
CPU_TARGET=i386
REVSTR=33009
UPXPROG=echo
IDE=1
NOWPOCYCLE=1
INSTALL_PREFIX=j:\free_pascal_and_lazarus_new4\fpc\i386\win32\binary\3.1.1\fpc_trunk\trunk
 
Lazarus make commands: 
clean
all
OPT=-gw2 -godwarfsets -godwarfmethodclassprefix -gl -gh -O- -Si- -vb -dHEAPTRC_WINDOW -dDBG_WITH_DEBUGGER_DEBUG
UPXPROG=echo
USESVN2REVISIONINC=0
Tagscodetools
Fixed in Revision
LazTarget
WidgetsetWin32/Win64
Attached Files

Activities

Cyrax

2016-01-28 20:16

reporter  

project1.zip (1,444 bytes)

Cyrax

2016-04-02 02:45

reporter  

lazarus-debug.zip (6,209 bytes)

Cyrax

2016-04-02 02:46

reporter   ~0091662

Attached debug output from CodeTools.

Cyrax

2017-02-28 15:46

reporter   ~0098515

Still a problem.

---

Lazarus 1.7 r54300

Cyrax

2019-02-26 02:05

reporter   ~0114447

Last edited: 2019-02-26 02:06

View 2 revisions

The error message have changed.

---

First error message comes up when the project is just opened in the IDE and the "Find declaration" routine is executed.

Codetools, Errors: 1
project1.lpr(25,58) Error: Behind code (last token at line 18, column 29)


Second comes up, when executing the "Find declaration" routine second time.

Codetools, Errors: 1
project1.lpr(18,30) Error: expected end., but T found


Lazarus 2.1.0 r60507


Issue History

Date Modified Username Field Change
2016-01-28 20:16 Cyrax New Issue
2016-01-28 20:16 Cyrax File Added: project1.zip
2016-01-28 20:16 Cyrax Tag Attached: codetools
2016-01-28 22:37 Mattias Gaertner Assigned To => Mattias Gaertner
2016-01-28 22:37 Mattias Gaertner Status new => assigned
2016-04-02 02:45 Cyrax File Added: lazarus-debug.zip
2016-04-02 02:46 Cyrax Note Added: 0091662
2017-02-28 15:46 Cyrax Note Added: 0098515
2019-02-26 02:05 Cyrax Note Added: 0114447
2019-02-26 02:06 Cyrax Note Edited: 0114447 View Revisions