Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 323487

Summary: $(selected_resource_location) does not work consistently with CDT build
Product: [Tools] CDT Reporter: Mark Green <mgreen96>
Component: cdt-buildAssignee: cdt-build-inbox <cdt-build-inbox>
Status: RESOLVED INVALID QA Contact: Andrew Gvozdev <angvoz.dev>
Severity: normal    
Priority: P3 CC: yevshif
Version: 8.0   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:

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.