Bug 251042 - Build configurations/Set Active context menu fails to update build behaviour
Summary: Build configurations/Set Active context menu fails to update build behaviour
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-build (show other bugs)
Version: 5.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: cdt-build-inbox@eclipse.org CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-16 02:08 EDT by Joe Thomas-Kerr CLA
Modified: 2020-09-04 15:23 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joe Thomas-Kerr CLA 2008-10-16 02:08:16 EDT
I have a project with two build configurations. 

1. Right click on the project in the "C/C++ projects" view
2. Select build configurations/set active 
3. Click on the inactive configuration to activate it.
4. Press "Ctrl-B" to Build Project.
5. The build command for the previously selected configuration (ie the inactive one) is executed.

So it appears that the metadata for the new build configuration is not being loaded.

I have also experienced a slightly different but probably related issue where I rename the build configuration, and after some minutes I find that it has been reset to "Default".
Comment 1 ZhangYi CLA 2008-11-12 05:03:24 EST
Hi,

  I can not reproduce this bug. My steps is below:

  1. Create an Executable Hello World C++ Project.
  2. Right click on the project.
  3. Go to "Build Configurations" --> "Set Active".
  4. Now the "Debug" is selected. Then I select Release (Set "Release" to active).
  5. Press "Ctrl-B" to Build Project.
  6. The command line shown in the console is Release's.

Please check out the newest code from CVS server and test the bug again to see if it could be reproduce or not.

Thanks,
Yi 
Comment 2 ZhangYi CLA 2008-12-01 02:21:30 EST
(In reply to comment #0)
> I have a project with two build configurations. 
> 
> 1. Right click on the project in the "C/C++ projects" view
> 2. Select build configurations/set active 
> 3. Click on the inactive configuration to activate it.
> 4. Press "Ctrl-B" to Build Project.
> 5. The build command for the previously selected configuration (ie the inactive
> one) is executed.
> 
> So it appears that the metadata for the new build configuration is not being
> loaded.
> 
> I have also experienced a slightly different but probably related issue where I
> rename the build configuration, and after some minutes I find that it has been
> reset to "Default".
> 

Hi Joe,

   Can you reproduce the bug now? I followed your steps and could not reproduce it.

Thanks,
Yi