Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 341338

Summary: Project Explorer / Indexer does not update files when switching build config
Product: [Tools] CDT Reporter: D. Fahsig <fahsig>
Component: cdt-buildAssignee: cdt-build-inbox <cdt-build-inbox>
Status: RESOLVED DUPLICATE QA Contact: Andrew Gvozdev <angvoz.dev>
Severity: normal    
Priority: P3 CC: cdtdoug, Michael_Rennie
Version: 5.0.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Different build configurations
none
This is the correct layout for config 1, but stays also for config 2, where the files under app should be greyed out none

Description D. Fahsig CLA 2011-03-30 07:03:08 EDT
This problem might be CDT specific, but I do not know.
Neither does the indexer.
I have different configs for different applications but same code basis and do not want to use libraries.
So i chose to exclude one set of files in Config 1 and include that set in Config 2 but exclude the included set of Config 1.
Thus I only have one main() per configuration. It does work, but the project explorer does not reflect the changes to the configurations.
It should disable the files from config 1 when config 2 is used. For Config 1 this works (config 2 files are disabled) and the config 2 files are not indexed, too.
When switching configs the indexer should update and so should the project explorer view.


-- Configuration Details --
Product: Eclipse 1.3.2.20110218-0812 (org.eclipse.epp.package.cpp.product)
Installed Features:
 org.eclipse.platform 3.6.2.r362_v20110210-9gF78Gs1FrIGnHDHWkEcopoN8AmxeZflGDGKQi
Comment 1 Michael Rennie CLA 2011-03-30 10:30:21 EDT
(In reply to comment #0)
> I have different configs for different applications but same code basis and do
> not want to use libraries.

Are you referring to CDT launch configurations?
Comment 2 D. Fahsig CLA 2011-03-31 02:28:21 EDT
Created attachment 192247 [details]
Different build configurations
Comment 3 D. Fahsig CLA 2011-03-31 02:40:34 EDT
Created attachment 192250 [details]
This is the correct layout for config 1, but stays also for config 2, where the files under app should be greyed out
Comment 4 D. Fahsig CLA 2011-03-31 02:42:04 EDT
No, I'm referring to the cdt build configurations as can be seen in the screenshot in comment 2.
The screenshot in comment 3 shows the project explorer with the excluded files (from build).
Comment 5 Michael Rennie CLA 2011-03-31 10:03:46 EDT
(In reply to comment #4)
> No, I'm referring to the cdt build configurations as can be seen in the

Thanks for reporting back. Moving to CDT for comment.
Comment 6 Andrew Gvozdev CLA 2011-03-31 13:08:06 EDT
Keep in mind that Project Explorer and other UI displays the configuration specified in preferences, not Active configuration which is used by build. See discussion in the referenced bug.

*** This bug has been marked as a duplicate of bug 313944 ***