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.
Scenario1: - Create shell script in project - Run it from context menu ==> Cannot run program "sh .\newshell1.sh" (in directory "C:\Documents and Settings\tester\My Documents\NetBeansProjects\CppApplication_1"): CreateProcess error=2, The system cannot find the file specified RUN FAILED Scenario2: Can't configure source based project ==> Cannot run program "sh .\configure CC=C:\util\cygwin\bin\gcc.exe CXX=C:\util\cygwin\bin\g++.exe CFLAGS="-g3 -gdwarf-2" CXXFLAGS="-g3 -gdwarf-2"" (in directory "C:\test_projects\litesql-0.3.1"): CreateProcess error=2, The system cannot find the file specified RUN FAILED
The root cause is usage of setCommandLine, which doesn't work on Windows ;( See https://netbeans.org/bugzilla/show_bug.cgi?id=170748
This bug is a potential showstopper, please fix it as soon as practical.
fixed in cnd-main: changeset 599ff4f8a390 in cnd-main details: http://hg.netbeans.org/cnd-main?cmd=changeset;node=599ff4f8a390 changeset 93cfe0684ea8 in cnd-main details: http://hg.netbeans.org/cnd-main?cmd=changeset;node=93cfe0684ea8 changeset 76308d070f1b in cnd-main details: http://hg.netbeans.org/cnd-main?cmd=changeset;node=76308d070f1b changeset 3bac37b27fc9 in cnd-main details: http://hg.netbeans.org/cnd-main?cmd=changeset;node=3bac37b27fc9 changeset b4453021174e in cnd-main details: http://hg.netbeans.org/cnd-main?cmd=changeset;node=b4453021174e
QA, please, verify fix that available since build 2304: http://bertram.netbeans.org/hudson/job/cnd-main/2304/ and evaluate as a showstopper for NB6.8
not fixed if command folder does not in paths
It's a showstopper for FCS.
Integrated into 'main-golden', will be available in build *200911271400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/599ff4f8a390 User: Alexander Simon <alexvsimon@netbeans.org> Log: fixed BZ#177669 Can't launch shell script on Windows
Additional fix: changeset 1401425d9660 in cnd-main details: http://hg.netbeans.org/cnd-main?cmd=changeset;node=1401425d9660
Fix will be available in build: http://bertram.netbeans.org/hudson/job/cnd-main/2309/
verified in cnd-dev build #2309. Please integrate the fix into release68 clone. Change the status back to RESOLVED FIXED as soon as the fix is implemented.
checked "C/C++ Project with Existing Sources" wizard on OpenSolaris (intel), Linux and Windows
Additional fix for *.bat and *.cmd: http://hg.netbeans.org/cnd-main/rev/d2c7152061bb
Fix is available in build: http://bertram.netbeans.org/hudson/job/cnd-main/2311/
So final list of changesets: 599ff4f8a390 93cfe0684ea8 76308d070f1b 3bac37b27fc9 b4453021174e 1401425d9660 d2c7152061bb
Integrated into 'main-golden', will be available in build *200911280200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/1401425d9660 User: Alexander Simon <alexvsimon@netbeans.org> Log: fixed BZ#177669 Can't launch shell script on Windows
I think fix is correct I see small problem, but it can be fixed in next release. Scenario: - Add ".bat" file with such text: @echo %1 @echo %2 @echo %3 @echo %PATH% @if %2 == 2 echo "correct" @if %2 == "2" echo "wrong" - in Properties tab call context menu and select Properties menu item - Add such text into Arguments text field: "-g3 -gdwarf-2" 2 - Run it ==> "-g3 -gdwarf-2" <--- -g3 -gdwarf-2 "2" <--- 2 ECHO is on. D:\MinGW\bin;D:\msys\1.0\bin;D:\cygwin_dir;D:\JavaFX\javafx-sdk1.2\bin;D:\JavaFX\javafx-sdk1.2\emulator\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;D:\Program Files\QuickTime\QTSystem\;E:\usr\bin;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\DTS\Binn\;D:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE;C:\WINDOWS\system32\WindowsPowerShell\v1.0;D:\Program Files\Mercurial;D:\JavaFX\javafx-sdk1.2\bin;D:\JavaFX\javafx-sdk1.2\emulator\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;D:\Program Files\QuickTime\QTSystem\;E:\usr\bin;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\DTS\Binn\;D:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE;C:\WINDOWS\system32\WindowsPowerShell\v1.0;D:\Program Files\Mercurial;D:/Qt/4.6.0-rc1/bin;D:\cygwin_dir\bin "wrong" <--- correct RUN SUCCESSFUL (total time: 4s)
Integrated into 'main-golden', will be available in build *200911281400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/d2c7152061bb User: alexvsimon@netbeans.org Log: fixed BZ#177669 Can't launch shell script on Windows - extra fix for .bat & .cmd
Created attachment 91852 [details] Please, review patch to integrate in release88
sorry release68
Thanks, Alexander, for the fix. Apart the note about normalizeParameters() method (the case when string has both quotes and slashes) the fix is OK. It solves this exact problem and doesn't require more dangerous changes in other modules [execution]. But as a long term solution (for the next release) things could (and should) be simplified. =Andrew
fixed in release68 in change set: http://hg.netbeans.org/release68/rev/a4a16fed142d
Integrated into 'main-golden', will be available in build *200912010200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/eef7baf0b3a0 User: Alexander Simon <alexvsimon@netbeans.org> Log: fixed BZ#177669 Can't launch shell script on Windows - additional fix after Andrew review
Verified in RC2 build 2009-12-02_22-00-34