Community
Participate
Working Groups
In CDT, there is a disconnect between Active build configuration and configuration used by indexer, Project Explorer and editor. There is a preference that controls that, Window->Preferences->C/C++->Indexer->"Build configuration for the indexer"->"Use active build configuration". However, users are constantly confused why Active configuration is not reflected in UI. Explanations like bug 247021 comment#12 or others work not too well. There are reasons why we cannot get rid of the disconnect, but what I am suggesting with this bug is to make it clearer to user that there are 2 configurations, i.e. add to affected UI controls indication which configuration is used for indexing. For example, in "Manage Configuration" dialog: Configuration Status Debug [Indexer] Release [Active] 8<---8<--- Now, the subject of this bug is somewhat of a decoy to attract the users confused by the disconnect of the configurations.
*** Bug 313933 has been marked as a duplicate of this bug. ***
Not strictly blocked by, but adding bug 329995 as these two bugs are strongly related.
"Manage Configuration" dialog is not frequently used, please consider it as a nice to have. There should be more instantly visible UI to deal with the confusion. I could suggest adding a decorator to the project name, but I'd like to save it for showing the active build configuration, there is probably not enough space to show both. The other place would be at the drop-down menu of active configuration button in the toolbar. That's used quite frequently and also the same menu of the build button. Another nice to have is to add it to the list of configurations near the "Manage Configuration" button in the project properties. OR, maybe even better, add another drop-down button that allows to change indexer current configuration (list all configs) with additional item: "Use Active Build Configuration". The latter will sync builder and indexer. The hint note for the button would say that this setting effects the state of the views. What do you think?
(In reply to comment #3) > The other place would be at the drop-down menu of active configuration button > in the toolbar. Can't you use the manage configurations button to change the active build configuration: http://help.eclipse.org/helios/topic/org.eclipse.cdt.doc.user/reference/cdt_u_toolbar.htm ?
(In reply to comment #4) > (In reply to comment #3) > > The other place would be at the drop-down menu of active configuration button > > in the toolbar. > > Can't you use the manage configurations button to change the active build > configuration: > http://help.eclipse.org/helios/topic/org.eclipse.cdt.doc.user/reference/cdt_u_toolbar.htm > ? I was referring to the drop down menu items of this button. My suggestion is to decorate the drop-down items of this button, so that when switching configuration, I can see that Indexer still points to another config.E.g. [ ] Debug [Indexer] [v] Release This is sufficient for display, but if we want also to change the indexer setting without digging in the properties, than a new button for selecting the indexer active config is a better alternative.
I was convinced that button let you change the configuration currently used by the indexer. Perhaps this has changed recently? We already have two buttons for the two distinct actions: a build hammer for selecting the current build configuration, and this button for selecting the current indexer configuration. We shouldn't further confuse the UI with: > [ ] Debug [Indexer] > [v] Release as it's not obvious what '[v] Release' means...
My understanding is that hammer button is for building and selecting configuration. This second button is only for selecting active build configuration without build. Of cause, if you've set the indexer to sync with active build configuration then, changing it, also changes the indexer config, but otherwise it doesn't.
Clear as mud... We need to rethink those buttons. The usability for them is horrible. I can never figure out which one I'm supposed to care about.
*** Bug 341338 has been marked as a duplicate of this bug. ***
*** Bug 356761 has been marked as a duplicate of this bug. ***
(In reply to comment #8) > Clear as mud... > > We need to rethink those buttons. The usability for them is horrible. I can > never figure out which one I'm supposed to care about. I second the "clear as mud..." part. After reading all comments on this bug report, I am still just as confused as before.
*** Bug 395298 has been marked as a duplicate of this bug. ***
*** Bug 442444 has been marked as a duplicate of this bug. ***
*** Bug 505711 has been marked as a duplicate of this bug. ***
*** Bug 530121 has been marked as a duplicate of this bug. ***
The index config was changed to match the active config by default as part of bug 329995, and the original problem described by this bug is the same. The discussions to revamp the UI for configuration management I think would warrant a dedicated bug, especially now that there is the launch bar in the picture. So I'll mark this one as duplicate. *** This bug has been marked as a duplicate of bug 329995 ***