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

Bug 230228

Summary: C/C++ Project View shows file list as if wrong config's exclusion list is in effect
Product: [Tools] CDT Reporter: Don Porges <dporges>
Component: cdt-coreAssignee: Project Inbox <cdt-core-inbox>
Status: RESOLVED INVALID QA Contact:
Severity: normal    
Priority: P3 CC: drdr, freidin.alex
Version: 5.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Bug Depends on:    
Bug Blocks: 299857    
Attachments:
Description Flags
Simple project with 2 files and 2 configs none

Description Don Porges CLA 2008-05-05 11:38:08 EDT
Build ID: M20080221-1800

Steps To Reproduce:
1. Create a project with 2 (main()) source files and 2 configs.
2. Exclude one file from one config and the other file from the other config.  
3. Build each config.

The project tree will show one source file with '+' next to it, indicating that the outline is available; the other source file will be below that, with no '+'.

4. Change the active config back and forth.  The tree does not change; it always acts as if the "first" config in the project is the current active one, in this respect.  It should reflect the current active configuration.


More information:

The Project Explorer view is doing the same thing.
Comment 1 Don Porges CLA 2008-05-05 11:38:47 EDT
Created attachment 98647 [details]
Simple project with 2 files and 2 configs
Comment 2 Slava CLA 2008-07-03 23:16:15 EDT
*** Bug 239423 has been marked as a duplicate of this bug. ***
Comment 3 Andrew Gvozdev CLA 2010-01-23 13:48:51 EST
There is a misperception which configuration is shown in Project Explorer view. It is not Active configuration but the configuration which indexer uses - so it is in sync with code navigation and highlighting in editor. This configuration is set in project properties->"C/C++ General"->Indexer->"Build configuration for the indexer". What you actually want is to set that to "Use active build configuration". Then it works as you expect.

See also bug 247021 comments 10-12.