View Issue Details

IDProjectCategoryView StatusLast Update
0030349LazarusIDEpublic2020-07-30 09:54
ReporterCyrax Assigned ToPascal Riekenberg  
PrioritynormalSeverityminorReproducibilityhave not tried
Status assignedResolutionopen 
PlatformWindows OSServer 2008 R2 
Product Version1.7 (SVN) 
Summary0030349: [codetools] Codetools doesn't recognize generic procedure inside a normal class, thus normal codetools functions will fail.
DescriptionLike summary says, "Find declaration of <x>" and "Complete code" will fail with error message:
Codetools, Errors: 1
project1.lpr(17,15) Error: expected :, but procedure found


See attached test project and build info files for more info.
Steps To Reproduce1. Open attached project in Lazarus.
2. Execute "Find declaration of <x>" or "Complete code" anywhere in the code.
3. Observe the error message in the message window.
Tagscodetools, generics
Fixed in Revision
LazTarget
WidgetsetWin32/Win64
Attached Files

Relationships

related to 0030124 resolvedJuha Manninen Lazarus specialize TFPGList<Int64> declaration is not supported by CodeTools 
related to 0027847 resolvedJuha Manninen Packages CodeTools see generics as an error 

Activities

Cyrax

2016-07-06 16:47

reporter  

project1.zip (1,320 bytes)

Cyrax

2016-07-06 16:47

reporter  

build_info.txt (1,384 bytes)   
Lazarus revision 52640 
FPC revision 34074 
 
FPC make commands: 
clean
all
install
OPT=-gw2 -godwarfsets -godwarfmethodclassprefix -gl -O- -Xs- -Si- -vbq -dCTYPES_INLINE_OFF -dSTRINGS_INLINE_OFF -dHEAPTRC_INLINE_OFF -dWINDOWS_INLINE_OFF -dDYNLIBS_INLINE_OFF -dSYSUTILS_INLINE_OFF -dMATH_INLINE_OFF -dTYPINFO_INLINE_OFF -dCPU_INLINE_OFF -dCHARSET_INLINE_OFF -dCHARACTER_INLINE_OFF -dUNICODEDATA_INLINE_OFF -dSYSTEM_INLINE_OFF -dTEST_WIN32_SEH
COMPILER_OPTIONS=-gw2 -godwarfsets -godwarfmethodclassprefix -gl -O- -Xs- -Si- -vbq -dCTYPES_INLINE_OFF -dSTRINGS_INLINE_OFF -dHEAPTRC_INLINE_OFF -dWINDOWS_INLINE_OFF -dDYNLIBS_INLINE_OFF -dSYSUTILS_INLINE_OFF -dMATH_INLINE_OFF -dTYPINFO_INLINE_OFF -dCPU_INLINE_OFF -dCHARSET_INLINE_OFF -dCHARACTER_INLINE_OFF -dUNICODEDATA_INLINE_OFF -dSYSTEM_INLINE_OFF -dTEST_WIN32_SEH
OS_TARGET=win32
CPU_TARGET=i386
REVSTR=34074
UPXPROG=echo
IDE=1
NOWPOCYCLE=1
INSTALL_PREFIX=j:\free_pascal_and_lazarus_new4\fpc\i386\win32\binary\3.1.1\fpc_trunk\trunk
LOCAL_FPMAKE_OPT=--verbose
ALLTARGET=all
 
Lazarus make commands: 
clean
all
OPT=-gw2 -godwarfsets -godwarfmethodclassprefix -gl -gh -O- -Si- -vb -dHEAPTRC_WINDOW -dDBG_WITH_DEBUGGER_DEBUG
UPXPROG=echo
USESVN2REVISIONINC=0
 
OS version: 
OS Name:                   Microsoft Windows Server 2008 R2 Enterprise 
OS Version:                6.1.7601 Service Pack 1 Build 7601
build_info.txt (1,384 bytes)   

mark jackson

2016-08-09 08:10

reporter   ~0094067

This is reproducable on clean install laz 1.6 on a win7 however i cant get program to compile either.

Cyrax

2017-02-28 16:08

reporter   ~0098520

This is still a problem.

---

Lazarus 1.7 r54300

Cyrax

2019-02-26 01:59

reporter   ~0114446

This bug is fixed.

---

Lazarus 2.1.0 r60507

Pascal Riekenberg

2020-07-30 09:54

developer   ~0124411

"Complete Code" inserts an ; where it does not belong!

 generic procedure Test;<T>;
                                          ^

Issue History

Date Modified Username Field Change
2016-07-06 16:47 Cyrax New Issue
2016-07-06 16:47 Cyrax File Added: project1.zip
2016-07-06 16:47 Cyrax File Added: build_info.txt
2016-07-06 16:49 Cyrax Tag Attached: codetools
2016-07-06 16:49 Cyrax Tag Attached: generics
2016-08-09 08:10 mark jackson Note Added: 0094067
2016-10-08 11:32 Juha Manninen Relationship added related to 0030124
2016-10-08 11:34 Juha Manninen Relationship added related to 0027847
2017-02-28 16:08 Cyrax Note Added: 0098520
2019-02-26 01:59 Cyrax Note Added: 0114446
2020-07-30 09:53 Pascal Riekenberg Assigned To => Pascal Riekenberg
2020-07-30 09:53 Pascal Riekenberg Status new => assigned
2020-07-30 09:54 Pascal Riekenberg Note Added: 0124411