Bug 333992 - Need option to build last configuration built (and not current selection)
Summary: Need option to build last configuration built (and not current selection)
Status: ASSIGNED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-build (show other bugs)
Version: 8.0   Edit
Hardware: PC Linux-GTK
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: cdt-build-inbox@eclipse.org CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on: 331031 334113
Blocks:
  Show dependency tree
 
Reported: 2011-01-11 10:41 EST by James Blackburn CLA
Modified: 2020-09-04 15:17 EDT (History)
3 users (show)

See Also:


Attachments
patch 1 (45.23 KB, patch)
2011-01-14 15:16 EST, James Blackburn CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description James Blackburn CLA 2011-01-11 10:41:06 EST
The Build Hammer action builds whatever is currently selected.

This is problematic when using references, as say an error is reported in a referenced header.  Having fixed the error, the user requests a build, and only the project containing the .h is built, not the top-level project the user was building...

I envisage this would work similarly to the LaunchHistory, and there'd be a preference to control whether current selection or last item in history is built.
Comment 1 James Blackburn CLA 2011-01-14 15:16:01 EST
Created attachment 186847 [details]
patch 1

Implementation. Requires CDT builder learns about configurations.
Comment 2 ewald CLA 2011-03-28 02:42:30 EDT
Being used to MS Visual Studio so far (with around 100 subprojects) I would like to have either:

- "re-build last project"

or rather

- introduce some kind of "active project"
- run "build active project"

In Visual Studio I hit two keys to compile the whole project and to start debugging without fiddling with the mouse in context menus.

As a workaround you can select a project in the explorer and invoke "build project". But it is easy to inadvertently select the wrong project, especially when "link with editor" is active.
Comment 3 James Blackburn CLA 2012-06-27 16:54:21 EDT
patchset at:
https://github.com/jamesblackburn/cdt/tree/bug/333992_build_history