View Issue Details

IDProjectCategoryView StatusLast Update
0036386LazarusIDEpublic2019-12-01 09:56
ReporterCharlyTangoAssigned To 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
Platformx64OSWindows 10OS Version
Product Version2.0.7 (SVN)Product Buildr62130 
Target VersionFixed in Version 
Summary0036386: additional compiler config file is not used in IDE
DescriptionIt is possible to use an additional compiler config file per project.

Menue: Project > Project Options... //Compiler Options > Config and Target > Use additional compiler config file

During compilation this additional config file (in this case app.cfg) is taken into consideration and it works as expected.

But the IDE Editor does not use the values of the defined additional configuration file(app.cfg).
Changes in app.cfg do not change the behavior of the editor as it should be.

Given the definition of USE_SPLASH in the additional configuration file (app.cfg) and the code example:
{$IFDEF USE_SPLASH}
lblSplash.Caption:='Splashscreen should be used';
{$ELSE}
lblSplash.Caption:='No Splashscreen should be shown';
{$ENDIF}

no changes were made in the editor when changing the value USE_SPLASH in app.cfg. One case should be engrayed, the other should be not engrayed. But nothing happens.

Furthermore app.cfg is not included in "View > IDE Internals > About FPC // FPC output".
Only the standard file fpc.cfg is interpreted. The additional config file (in this case app.cfg) is neither shown nor interpreted.
Steps To Reproduceremove the # before
#DEFINE USE_SPLASH
in the file app.cfg and test the correct using of app.cfg after compile/run.

But the changing of #DEFINE USE_SPLASH has no sudden effect in the editor.

In opposite to that behavior the values set in
Menue: Project > Project Options...//Custom Options>Defines
were processed at once.
TagsNo tags attached.
Fixed in Revision
LazTarget
WidgetsetWin32/Win64
Attached Files

Activities

CharlyTango

2019-12-01 09:56

reporter  

project1.zip (129,447 bytes)

Issue History

Date Modified Username Field Change
2019-12-01 09:56 CharlyTango New Issue
2019-12-01 09:56 CharlyTango File Added: project1.zip