Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 299895 - Project Explorer does not honor indexer's configuration preference for build settings overlay adornment
Summary: Project Explorer does not honor indexer's configuration preference for build ...
Status: RESOLVED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-core (show other bugs)
Version: 6.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 7.0   Edit
Assignee: Andrew Gvozdev CLA
QA Contact: Elena Laskavaia CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 299857
  Show dependency tree
 
Reported: 2010-01-18 00:03 EST by Andrew Gvozdev CLA
Modified: 2010-02-19 14:12 EST (History)
0 users

See Also:


Attachments
patch 1 (2.34 KB, patch)
2010-02-19 13:08 EST, Andrew Gvozdev CLA
angvoz.dev: iplog-
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Gvozdev CLA 2010-01-18 00:03:14 EST
There is a setting in project properties->"C/C++ General"->Indexer->"Build configuration for the indexer" - set to "Use a fixed build configuration" by default. Project Explorer should use that preference to render build settings but it does not do so consistently. Here is the example borrowed but creatively changed from bug 247021:

0.Make sure the workspace preference (matching the property) set to fixed configuration.
1.Create Hello World C project.
2.Select a source file and change its compiler setting (to reproduce use Preprocessor -nostdinc flag).
3.If the resource decorator (overlay) doesn't appear in the Project Explorer refresh project manually (fixed just recently).
4.Change active configuration. The decorator doesn't change which is correct.
5.Manually refresh the file in Project Explorer. The decorator disappear matching active configuration instead of fixed configuration specified in indexer properties.
Comment 1 Andrew Gvozdev CLA 2010-02-19 13:08:31 EST
Created attachment 159596 [details]
patch 1

Here is the patch.

Committed on HEAD (7.0).
Comment 2 Andrew Gvozdev CLA 2010-02-19 14:12:21 EST
There is one issue I found but I think it deserves a separate bug 303358. Closing this task as fixed.