Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 341338 - Project Explorer / Indexer does not update files when switching build config
Summary: Project Explorer / Indexer does not update files when switching build config
Status: RESOLVED DUPLICATE of bug 313944
Alias: None
Product: CDT
Classification: Tools
Component: cdt-build (show other bugs)
Version: 5.0.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: cdt-build-inbox@eclipse.org CLA
QA Contact: Andrew Gvozdev CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-30 07:03 EDT by D. Fahsig CLA
Modified: 2011-03-31 13:08 EDT (History)
2 users (show)

See Also:


Attachments
Different build configurations (9.54 KB, image/png)
2011-03-31 02:28 EDT, D. Fahsig CLA
no flags Details
This is the correct layout for config 1, but stays also for config 2, where the files under app should be greyed out (8.88 KB, image/png)
2011-03-31 02:40 EDT, D. Fahsig CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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 ***