Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 313944 - Project Explorer or editor don't reflect active configuration change
Summary: Project Explorer or editor don't reflect active configuration change
Status: CLOSED DUPLICATE of bug 329995
Alias: None
Product: CDT
Classification: Tools
Component: cdt-core (show other bugs)
Version: 7.0   Edit
Hardware: All All
: P3 normal with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
: 313933 341338 356761 395298 442444 505711 530121 (view as bug list)
Depends on: 329995
Blocks:
  Show dependency tree
 
Reported: 2010-05-21 13:15 EDT by Andrew Gvozdev CLA
Modified: 2020-10-24 13:27 EDT (History)
14 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Gvozdev CLA 2010-05-21 13:15:25 EDT
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.
Comment 1 Andrew Gvozdev CLA 2010-05-21 13:17:24 EDT
*** Bug 313933 has been marked as a duplicate of this bug. ***
Comment 2 James Blackburn CLA 2010-12-02 11:03:11 EST
Not strictly blocked by, but adding bug 329995 as these two bugs are strongly related.
Comment 3 Alex Freidin CLA 2010-12-05 04:58:56 EST
"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?
Comment 4 James Blackburn CLA 2010-12-05 07:18:07 EST
(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
?
Comment 5 Alex Freidin CLA 2010-12-05 07:37:08 EST
(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.
Comment 6 James Blackburn CLA 2010-12-05 07:50:34 EST
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...
Comment 7 Alex Freidin CLA 2010-12-05 08:21:42 EST
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.
Comment 8 Doug Schaefer CLA 2010-12-05 19:05:25 EST
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.
Comment 9 Andrew Gvozdev CLA 2011-03-31 13:08:06 EDT
*** Bug 341338 has been marked as a duplicate of this bug. ***
Comment 10 Anton Leherbauer CLA 2011-09-06 04:25:17 EDT
*** Bug 356761 has been marked as a duplicate of this bug. ***
Comment 11 Amenel Voglozin CLA 2012-08-21 07:57:19 EDT
(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.
Comment 12 Andrew Gvozdev CLA 2012-11-28 22:36:13 EST
*** Bug 395298 has been marked as a duplicate of this bug. ***
Comment 13 Andrew Gvozdev CLA 2014-09-09 15:03:41 EDT
*** Bug 442444 has been marked as a duplicate of this bug. ***
Comment 14 Stanislav Perepelitsa CLA 2016-12-01 10:24:47 EST
*** Bug 505711 has been marked as a duplicate of this bug. ***
Comment 15 Nathan Ridge CLA 2018-02-08 20:27:32 EST
*** Bug 530121 has been marked as a duplicate of this bug. ***
Comment 16 Marc-André Laperle CLA 2020-10-24 13:27:24 EDT
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 ***