This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 267446 - Launchers: "${OUTPUT_PATH}" doesn't work in some cases
Summary: Launchers: "${OUTPUT_PATH}" doesn't work in some cases
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Project (show other bugs)
Version: 8.2
Hardware: PC Solaris
: P3 normal (vote)
Assignee: Alexander Simon
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-08-05 14:09 UTC by soldatov
Modified: 2016-08-26 01:49 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description soldatov 2016-08-05 14:09:34 UTC
Sources:
=================================================
Makefile
=================================================
CC=g++
CFLAGS=-g

test1: test1.cpp
	$(CC) $(CFLAGS) -o test1 test1.cpp

clean:
	rm -f test1

=================================================
test1.cpp
=================================================

int main(int argc, char** argv) {
      return 0;
}

=================================================

Scenario:
- Call New C/C++ Project with Existing Sources wizard
- Create project with default options
- Run project
==> ok
- Open Project Properties window
- Check Build|Make|Build Result field
==> I see: test1
- Check Run|Run Command field
==> I see: "${OUTPUT_PATH}"
- Select Launchers category
- Press New button
- Set Run Command = "${OUTPUT_PATH}"
- Press OK
- Call context menu on project's node and select Run|launcher1000
==>
/bin/sh[1]: exec: test1: not found

RUN LAUNCHER1000 FINISHED; exit value 127; real time: 0ms; user: 0ms; system: 0ms


Workarounds:
1) Use "./${OUTPUT_PATH}" in launchers
2) Use "${PROJECT_DIR}/${OUTPUT_PATH}"
Comment 1 soldatov 2016-08-05 14:11:38 UTC
3) Use ./test1 in Build|Make|Build Result field
Comment 2 soldatov 2016-08-24 15:22:35 UTC
If user pressed "New" button, then IDE can fill "Run Command" field. I expect "${PROJECT_DIR}/${OUTPUT_PATH}" or "./${OUTPUT_PATH}" default value.
Comment 3 Quality Engineering 2016-08-25 01:47:01 UTC
Integrated into 'main-silver', will be available in build *201608250002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/3056720f2aad
User: Alexander Simon <alexvsimon@netbeans.org>
Log: fixed Bug #267446 Launchers: "${OUTPUT_PATH}" doesn't work in some cases
Comment 4 Alexander Simon 2016-08-25 08:03:59 UTC
additional fix:
http://hg.netbeans.org/cnd-main/rev/ef3c46b5b8fb
- add completion with predefined macros
Comment 5 Quality Engineering 2016-08-26 01:49:43 UTC
Integrated into 'main-silver', will be available in build *201608260002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/ef3c46b5b8fb
User: Alexander Simon <alexvsimon@netbeans.org>
Log: fixed Bug #267446 Launchers: "${OUTPUT_PATH}" doesn't work in some cases