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 248832 - Split custom NodeJS binary and NodeJS sources configuration
Summary: Split custom NodeJS binary and NodeJS sources configuration
Status: VERIFIED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Node.js (show other bugs)
Version: 8.1
Hardware: All All
: P2 normal (vote)
Assignee: Tomas Mysik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-11-23 10:11 UTC by Vladimir Riha
Modified: 2015-01-05 08:48 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Riha 2014-11-23 10:11:45 UTC
There is a NodeJS module called "nodemon" [1] that can be used to run NodeJS application and it will automatically listen on file changes and restart NodeJS upon file save.

It could be used in NetBeans by setting project to run on custom NodeJS, but then IDE marks project as broken due to missing NodeJS sources (and I guess it affects editor's completion as well) and if you try to download the sources, it (as expected) does not work and IDE shows "Downloading sources for node.js version..."  progress bar and it does not go away.

Would it be possible to "split" configuration of NodeJS binary and NodeJS sources? So if one selects to run project on custom NodeJS binary (nodemon in this case), there would be another checkbox to "use default Node.JS sources" (would download sources for default NodeJS) and "use custom Node.JS sources" (would work as it does right now if you select custom NodeJS).


Thanks


[1] https://github.com/remy/nodemon
Comment 1 Tomas Mysik 2014-11-24 07:08:13 UTC
Hm, I guess there should be some way to enter version of node.js sources that should be downloaded and used...
Comment 2 Tomas Mysik 2014-12-04 06:48:26 UTC
My area.
Comment 3 Tomas Mysik 2014-12-04 09:54:22 UTC
Likely I will add a button "Select..." for selecting node.js sources (next to "Download..." button). Then it should be possible to manually select whichever sources user needs (of course, in such case she will loose the possibility to check whether sources are up-to-date with the node.js CLI).

Thanks.
Comment 4 Tomas Mysik 2014-12-17 10:10:09 UTC
Should be done now. Please, verify it _carefully_ since it is quite a lot of changes. Try default node, project specific node and verify please also that documentation and project problems are OK.

Thanks.

http://hg.netbeans.org/web-main/rev/1b176791c703
Comment 5 Quality Engineering 2014-12-18 04:29:24 UTC
Integrated into 'main-silver', will be available in build *201412180001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/1b176791c703
User: Tomas Mysik <tmysik@netbeans.org>
Log: #248832 - Split custom NodeJS binary and NodeJS sources configuration
Comment 6 Vladimir Riha 2015-01-05 08:48:32 UTC
Thank you, verified and some issues I've found are reported.

Product Version: NetBeans IDE Dev (Build web-main-1728-on-20141218)
Java: 1.7.0_45; Java HotSpot(TM) 64-Bit Server VM 24.45-b08
Runtime: Java(TM) SE Runtime Environment 1.7.0_45-b18
System: Linux version 3.13.0-43-generic running on amd64; UTF-8; en_US (nb)