View Issue Details

IDProjectCategoryView StatusLast Update
0032950LazarusIDEpublic2018-01-12 15:02
ReporterTsvetoslavAssigned ToBart Broersma 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionduplicate 
Platformx86_64OSWindowsOS Version7
Product Version1.9 (SVN)Product Build56963 
Target VersionFixed in Version 
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
{$if CONST_NAME = NNN}
...
{$endif}
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
LazTarget-
WidgetsetGTK 2, Win32/Win64
Attached Files

Relationships

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

Activities

Tsvetoslav

2018-01-05 13:49

reporter  

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