This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
C project has default 2 configurations.(Debug/Release) I copied configuration 'Release' to 'Copy_Of_Release' And add some text to [preprocessor definitions] in 'Copy_Of_Release' But when I build using 'Copy_Of_Release', Makefile doesn't have preprocessor definition. When I build using 'Release', Makefile is genereated correctly.
Problem confirmed. If you close and reopen the project it works fine.
*** Issue 133213 has been marked as a duplicate of this issue. ***
Something is wrong in the master chain of CC/C configurations.
Workaround is to close and re-open project. Probably won't fix for 6.5.
Integrated into 'main-golden', will be available in build *200904250201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/7819a3e0340f User: Nick N. Krasilnikov <nnnnnk@netbeans.org> Log: fixing IZ#136535 : cannot set preprocessor definition
The problem locates in MakeConfiguration copy(). auxObjectsMap contains ItemConfigurations and FolderConfigurations. This classes have links to configurations (lastConfiguration, cCompilerConfiguration, ccCompilerConfiguration). During a copy process we do not change this configurations. But this configurations contains links to old master configutarions. So the problem in coping of graph in unpredictable order.
*** Issue 167245 has been marked as a duplicate of this issue. ***
Unfortunately closing and re-opening the project does not help. The workaround is to *restart IDE*. IMO now it's high time to fix such issues and do not postpone them till end of a new development cycle when I believe we will have enough new issues to fix.
Fixed.
Integrated into 'main-golden', will be available in build *200906191401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/492d05041bd2 User: Thomas Preisler <thp@netbeans.org> Log: #136535 Can not change compiler options in duplicated configuration
verified in dev build. It should be a candidate for 6.7 patch1.
The fix has been ported into the release61_fixes repository. http://hg.netbeans.org/release67_fixes/rev/0593123ba307
The fix has been ported into the release67_fixes repository, of course. The release61_fixes is a typo.
verified in nb6.7.1rc