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 271369 - Regressions in launchers on Windows
Summary: Regressions in launchers on Windows
Status: NEW
Alias: None
Product: cnd
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 8.2
Hardware: PC Windows 8.1
: P2 normal (vote)
Assignee: Alexander Simon
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-08-25 09:38 UTC by soldatov
Modified: 2017-08-25 11:48 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 2017-08-25 09:38:58 UTC
I see 2 stable test failures on Cygwin(Windows 7) test machine and 5 failures on MSYS2(Windows 8.1) test machine.

Scenario:
- Create Welcome project
- Build project
- Call "Project Properties" window
- Select "Launcher" category and press New button
==> in "Run Command" field I see "${PROJECT_DIR}/${OUTPUT_PATH}" message
- Set new command in "Run Command" field:
a) echo 1 2 3
b) "${OUTPUT_PATH}" 1 2 3
c) ${OUTPUT_PATH} 1 2 3
d) ./dist/Debug/MinGW-Windows/welcome_3.exe 1 2 3
- Push OK button
- Call context menu on projects node and select Run|launcher1000
===>
NetBeans 8.2 - OK
NetBeans trunk:

Cannot run program ""dist/Debug/MinGW-Windows/welcome_2" 1 2 3" (in directory "C:\Users\apepin\Documents\NetBeansProjects\Welcome_2"): CreateProcess error=2, The system cannot find the file specified

RUN LAUNCHER1000 FAILED (exit value -2, total time: 21ms)
Comment 1 soldatov 2017-08-25 10:36:02 UTC
On Cygwin test machine such test case fails:
- Create Welcome project
- Build project
- Call "Project Properties" window
- Select "Launcher" category and press New button
- Set "echo 1 2 3" in "Run Command" field
- Set "echo 1 2 3" in "Build Command" field
- Push OK button
- Call context menu on projects node and select Run|launcher1000
===> ok
- Call context menu on projects node and select Build|launcher1000
===>
cd 'C:\Users\vsoldato\Documents\NetBeansProjects\Welcome_1'
echo 1 2 3
Cannot run program "echo 1 2 3" (in directory "C:\Users\vsoldato\Documents\NetBeansProjects\Welcome_1"): CreateProcess error=2, The system cannot find the file specified

BUILD FAILED (exit value -2, total time: 58ms)

P.S. No failures if I use 'echo "1 2 3"' instead of 'echo 1 2 3'