Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 323487 - $(selected_resource_location) does not work consistently with CDT build
Summary: $(selected_resource_location) does not work consistently with CDT build
Status: RESOLVED INVALID
Alias: None
Product: CDT
Classification: Tools
Component: cdt-build (show other bugs)
Version: 8.0   Edit
Hardware: All Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: cdt-build-inbox@eclipse.org CLA
QA Contact: Andrew Gvozdev CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-24 09:13 EDT by Mark Green CLA
Modified: 2012-06-07 15:39 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 Mark Green CLA 2010-08-24 09:13:12 EDT
Build Identifier: 201006141710

In [Project][Settings] we overrode the "Build Command" to the following to build just the selected file:

"make ${selected_resource_location}"

It works for one or 2 builds, but then returns blank.  It appears to be losing track of the selected file in Eclipse.

Reproducible: Sometimes

Steps to Reproduce:
1.Set your build command to "echo ${selected_resource_location}" (for the sake of easy testing).
2. Open a C++ file in Eclipse CDT and build (i.e. CTRL+B).
3. Click on the Console window and a few other tabs, then attempt.
4. Repeat steps 1-3 2 or 3 times.

Once the context is lost, it will always return blank.

FYI:  While this bug is against Helios/CDT 7, it was also present in Galileo and earlier CDT releases.
Comment 1 Andrew Gvozdev CLA 2010-08-24 10:01:38 EDT
Using that variable is disallowed, please see bug 260524.