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.
I have a NPM script that starts some NodeJS server. If I run the script from IDE (NPM Scripts-> my script), it starts it OK. But when I need to re-run it, I must manually kill it (to free the server port) and start again. Would be nice if IDE would kill the running npm script if it has been invoked by use again (just like running NodeJS project works). Thanks
Sounds reasonable, thanks for reporting.
Should be done now, please verify (together with re-run of project, please). Thanks. http://hg.netbeans.org/web-main/rev/41e2ad4b987d
Integrated into 'main-silver', will be available in build *201601230002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/41e2ad4b987d User: Tomas Mysik <tmysik@netbeans.org> Log: #257237 - Kill running npm script on re-run
Thanks a lot :) Verified Product Version: NetBeans IDE Dev (Build 201602100002) Java: 1.8.0_45; Java HotSpot(TM) 64-Bit Server VM 25.45-b02 Runtime: Java(TM) SE Runtime Environment 1.8.0_45-b14 System: Linux version 3.16.0-30-generic running on amd64; UTF-8; en_US (nb)
BTW this fix caused issue #268405.
Integrated into 'main-silver', will be available in build *201610220002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/87c1e08e9758 User: Tomas Mysik <tmysik@netbeans.org> Log: #268405 - NullPointerException at org.netbeans.modules.javascript.nodejs.exec.NpmExecutable.stopRunningScript Caused by fixing issue #257237.