View Issue Details

IDProjectCategoryView StatusLast Update
0032950LazarusIDEpublic2018-01-12 15:02
ReporterTsvetoslav Assigned ToBart Broersma  
Status resolvedResolutionduplicate 
Product Version1.9 (SVN) 
Summary0032950: Code editor always displayes the code within {$if CONST_NAME = NNN} ... {$endif} as inactive
DescriptionIt seems that the code editor/code tools do not handle properly the
conditional lines and the source code between $if and $endif is always displayed as inactive.
Steps To ReproduceLook at the attached screenshot. The constant MY_CONST is defined and its value is 1, but the procedure Test1 is displayed as inactive. Compiling the project tries to compile the procedure Test1 and it fails with the expected message 'unit1.pas(33,3) Error: Identifier not found "ErrorLineHere"'.
TagsNo tags attached.
Fixed in Revision
WidgetsetGTK 2, Win32/Win64
Attached Files


duplicate of 0030109 confirmed IDE editor: {$if} doesn't evaluate constants 



2018-01-05 13:49


Incorrect_Inactive_Code.png (32,525 bytes)   
Incorrect_Inactive_Code.png (32,525 bytes)   

Issue History

Date Modified Username Field Change
2018-01-05 13:49 Tsvetoslav New Issue
2018-01-05 13:49 Tsvetoslav File Added: Incorrect_Inactive_Code.png
2018-01-12 15:02 Bart Broersma LazTarget => -
2018-01-12 15:02 Bart Broersma Relationship added duplicate of 0030109
2018-01-12 15:02 Bart Broersma Status new => resolved
2018-01-12 15:02 Bart Broersma Resolution open => duplicate
2018-01-12 15:02 Bart Broersma Assigned To => Bart Broersma