Closed przemyslawgrzonka closed 11 years ago
Hi codehf,
I just had the same problem (on 32-bit Ubuntu 13.04 Linux ubuntu 3.8.0-23-generic #34-Ubuntu SMP Wed May 29 20:24:54 UTC 2013 i686 i686 i686 GNU/Linux, Netbeans 7.3 build 201302132200). Issue was resolved by compiling the plugin myself. Probably the compiled version you downloaded doesn't match your kernel or system architecture, so building it yourself should resolve that issue.
To do so: 1/ open a terminal and install Maven if it's not on your system yet (sudo apt-get install maven on Mint) 2/ then cd to a directory and clone this git repo (git clone https://github.com/timboudreau/nb-nodejs.git) 3/ after it's cloned, cd nb-nodejs/node-projects 4/ mvn install nbm:nbm 5/ the compiled plugin can then be found in nb-nodejs/node-projects/target/nbm
Try again with this .nbm file, it should work.
Can you describe what happens when you add the module in Tools | Plugins - in particular, is anything logged to the console? If something is wrong with the binary, there should be some output in the console or ~/.netbeans/$VERSION/var/log/netbeans.log
which would let me figure out what is happening.
Nothing happens really Tim :-/ I click the file and the list just remains empty, no option to install anything. Logs don't show anything either:
sventunus@ubuntu:~/.netbeans/7.3/var/log$ ls -al
total 860
drwxrwxr-x 2 sventunus sventunus 4096 May 31 11:01 .
drwxrwxr-x 4 sventunus sventunus 4096 May 31 15:32 ..
-rw-rw-r-- 1 sventunus sventunus 92531 May 31 17:50 messages.log
-rw-rw-r-- 1 sventunus sventunus 77926 May 31 11:00 messages.log.1
-rw-rw-r-- 1 sventunus sventunus 81952 May 30 16:43 messages.log.2
-rw-rw-r-- 1 sventunus sventunus 389110 May 31 17:50 uigestures
-rw-rw-r-- 1 sventunus sventunus 114222 May 31 11:01 uigestures.1
-rw-rw-r-- 1 sventunus sventunus 90058 Apr 26 10:23 updater.log.0
sventunus@ubuntu:~/.netbeans/7.3/var/log$ cat messages.log.1 | grep
"nb-nodejs"
INFO [org.netbeans.updater]: 780: Unpacking cz-kec-nb-nodejs.nbm
INFO [org.netbeans.updater]: File installed
/home/sventunus/.netbeans/7.3/config/Modules/cz-kec-nb-nodejs.xml@0
INFO [org.netbeans.updater]: Copied file
netbeans/config/Modules/cz-kec-nb-nodejs.xml to
/home/sventunus/.netbeans/7.3/config/Modules/cz-kec-nb-nodejs.xml
INFO [org.netbeans.updater]: File installed
/home/sventunus/.netbeans/7.3/modules/cz-kec-nb-nodejs.jar@0
INFO [org.netbeans.updater]: Copied file
netbeans/modules/cz-kec-nb-nodejs.jar to
/home/sventunus/.netbeans/7.3/modules/cz-kec-nb-nodejs.jar
INFO [org.netbeans.updater]: File
/home/sventunus/.netbeans/7.3/update/download/cz-kec-nb-nodejs.nbm deleted.
INFO [org.netbeans.updater]: File
/home/sventunus/.netbeans/7.3/update_tracking/cz-kec-nb-nodejs.xml modified.
INFO [org.netbeans.updater]: File installed
/home/sventunus/.netbeans/7.3/update_tracking/cz-kec-nb-nodejs.xml@0
sventunus@ubuntu:~/.netbeans/7.3/var/log$ cat messages.log.2 | grep
"nb-nodejs"
sventunus@ubuntu:~/.netbeans/7.3/var/log$ cat uigestures.1 | grep
"nb-nodejs"
sventunus@ubuntu:~/.netbeans/7.3/var/log$ cat uigestures | grep "nb-nodejs"
sventunus@ubuntu:~/.netbeans/7.3/var/log$ cat updater.log.0 | grep
"nb-nodejs"
On Fri, May 31, 2013 at 5:41 PM, Tim Boudreau notifications@github.comwrote:
Can you describe what happens when you add the module in Tools | Plugins - in particular, is anything logged to the console? If something is wrong with the binary, there should be some output in the console or ~/.netbeans/$VERSION/var/log/netbeans.log which would let me figure out what is happening.
— Reply to this email directly or view it on GitHubhttps://github.com/timboudreau/nb-nodejs/issues/3#issuecomment-18752928 .
But like I said: works like a charm if you build the plugin yourself via Maven :-)
On Fri, May 31, 2013 at 5:55 PM, Sven Dens sven.dens@gmail.com wrote:
Nothing happens really Tim :-/ I click the file and the list just remains empty, no option to install anything. Logs don't show anything either:
sventunus@ubuntu:~/.netbeans/7.3/var/log$ ls -al total 860 drwxrwxr-x 2 sventunus sventunus 4096 May 31 11:01 . drwxrwxr-x 4 sventunus sventunus 4096 May 31 15:32 .. -rw-rw-r-- 1 sventunus sventunus 92531 May 31 17:50 messages.log -rw-rw-r-- 1 sventunus sventunus 77926 May 31 11:00 messages.log.1 -rw-rw-r-- 1 sventunus sventunus 81952 May 30 16:43 messages.log.2 -rw-rw-r-- 1 sventunus sventunus 389110 May 31 17:50 uigestures -rw-rw-r-- 1 sventunus sventunus 114222 May 31 11:01 uigestures.1 -rw-rw-r-- 1 sventunus sventunus 90058 Apr 26 10:23 updater.log.0 sventunus@ubuntu:~/.netbeans/7.3/var/log$ cat messages.log.1 | grep "nb-nodejs" INFO [org.netbeans.updater]: 780: Unpacking cz-kec-nb-nodejs.nbm INFO [org.netbeans.updater]: File installed /home/sventunus/.netbeans/7.3/config/Modules/cz-kec-nb-nodejs.xml@0 INFO [org.netbeans.updater]: Copied file netbeans/config/Modules/cz-kec-nb-nodejs.xml to /home/sventunus/.netbeans/7.3/config/Modules/cz-kec-nb-nodejs.xml INFO [org.netbeans.updater]: File installed /home/sventunus/.netbeans/7.3/modules/cz-kec-nb-nodejs.jar@0 INFO [org.netbeans.updater]: Copied file netbeans/modules/cz-kec-nb-nodejs.jar to /home/sventunus/.netbeans/7.3/modules/cz-kec-nb-nodejs.jar INFO [org.netbeans.updater]: File /home/sventunus/.netbeans/7.3/update/download/cz-kec-nb-nodejs.nbm deleted. INFO [org.netbeans.updater]: File /home/sventunus/.netbeans/7.3/update_tracking/cz-kec-nb-nodejs.xml modified. INFO [org.netbeans.updater]: File installed /home/sventunus/.netbeans/7.3/update_tracking/cz-kec-nb-nodejs.xml@0 sventunus@ubuntu:~/.netbeans/7.3/var/log$ cat messages.log.2 | grep "nb-nodejs" sventunus@ubuntu:~/.netbeans/7.3/var/log$ cat uigestures.1 | grep "nb-nodejs" sventunus@ubuntu:~/.netbeans/7.3/var/log$ cat uigestures | grep "nb-nodejs" sventunus@ubuntu:~/.netbeans/7.3/var/log$ cat updater.log.0 | grep "nb-nodejs"
On Fri, May 31, 2013 at 5:41 PM, Tim Boudreau notifications@github.comwrote:
Can you describe what happens when you add the module in Tools | Plugins - in particular, is anything logged to the console? If something is wrong with the binary, there should be some output in the console or ~/.netbeans/$VERSION/var/log/netbeans.log which would let me figure out what is happening.
— Reply to this email directly or view it on GitHubhttps://github.com/timboudreau/nb-nodejs/issues/3#issuecomment-18752928 .
What is cz-kec-nb-nodejs? It's definitely not something you downloaded from me.
No, it's another plugin, nevermind that one ;-)
Could you grep for node.js or attach your log from a session trying to install the module or something? All your grep got was stuff related to some other module, so it doesn't provide any clue what could be happening.
But I could definitely believe that another node-related module might stomp some things this one does. Could you start netbeans on the command line like this
cd $NETBEANS_HOME/bin
./netbeans --userdir /tmp/foo
so none of your existing settings are used? If it works there, then we know the problem is something or other in your userdir.
The module is built with JDK 7, for what that's worth - I could imagine a class version warning on JDK 6, but that would be shown clearly to you.
Anyway, right now I don't have enough information to debug anything - really need a way to reproduce or at least a log or I can't help.
Please reopen if you can provide enough info to reproduce/fix.
Maybe this helps: this is in my log (using Mac OSX, nb7.3, JDK 1.7):
SEVERE [org.openide.util.Exceptions]
java.io.IOException: error=2, No such file or directory
at java.lang.UNIXProcess.forkAndExec(Native Method)
at java.lang.UNIXProcess.
The module is already installled for this stack trace to appear - org.netbeans.modules.nodejs.libraries.LibrariesPanel
makes that apparent. However, it appears that either
npm
What's happening in this stack trace is it's trying to run npm
and parse the output as a list of matching libraries, but there is no npm
on the path.
At any rate, it's not related to installation problems with the module, but rather with node. I don't know if the Mac OS version puts node and npm on the system exe path - if not, you may need to do that manually.
both node and npm are on the the system path, so that's not the issue. This is what's on my mac: 192:~ $ echo $PATH /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin 192:~ $ which node /usr/local/bin/node 192:~ $ node -v v0.10.7 192:~ $ which npm /usr/local/bin/npm 192:~ $ npm -v 1.2.21
regards,
Danny
Hmm, I suspect it's not on the path that NetBeans sees; the code in question simply runs "npm" unqualified. Probably I should do the same thing, with making it possible to explicitly set the location of npm and also auto-detect an explicit path by default, as it does with the node binary. I'll open a separate issue for that.
I'm having the same issue trying to install the plugin with NetBeans 7.3, Windows 8. Node and NPM are installed and are in the Path.
When I go to add the plugin, it does nothing. (In other words, it does the exact same thing as when I try to add a random .txt file.) I'm not familiar enough with NetBeans to know what else you need to help troubleshoot, but I'm happy to help.
Thanks!
Ah... you're running Windows.
The plugin actually includes in its manifest OpenIDE-Module-Requires: org.openide.modules.os.Unix
to be disabled on Windows. So that's the problem :-/
When I originally wrote it in 2010 / 2011, Node didn't support Windows, period - so there was no point in confusing people by allowing it to install on Windows when they wouldn't be able to do anything with it once they had it.
I am surprised there was no message saying why it wouldn't install though - that's a problem on the NetBeans side, but definitely a problem.
I'll remove that restriction from it, so there will be a 2.4 build in a few hours. That said, I know there are some unixy assumptions in the module (searching for the binary in /usr/bin, things like that). I'll do a pass over the code to try to weed out any obvious ones, but it wouldn't surprise me if some stuff remains broken. If you could file bugs for those, I'd appreciate it - I don't have a Windows machine handy to test it on.
Where in the filesystem does Node end up installed on Windows? I can add the default location to the search path for node - the module checks a bunch of common locations before asking the user.
Node and NPM are installed under C:\Program Files\nodejs\ in the filesystem and Cygwin. Looking at the path variable, NPM is also C:\UsersUSER\AppData\Roaming\npm.
Thanks for looking into it!
Not sure if you want these via email or GitHub, but I'll let you know when I see things in the Windows version.
When installing, the template package dependency that was looking in the wrong place. It should be here: http://dlc.sun.com.edgesuite.net/netbeans/updates/7.3.1/uc/final/distributio n/modules/javacard/. Not sure if that's a plugin thing or a NetBeans thing.
Other than that, it seemed to be good, though I haven't really played with it much yet. There are a few wish-list features (e.g. integrating with the HTML5 inspector), but that's probably for the future. :)
Thanks for the quick turnaround!
From: Tim Boudreau [mailto:notifications@github.com] Sent: Thursday, July 11, 2013 11:33 PM To: timboudreau/nb-nodejs; timboudreau/nb-nodejs Cc: Terry; Terry Subject: Re: [nb-nodejs] Add plugin is not working (#3)
Where in the filesystem does Node end up installed on Windows? I can add the default location to the search path for node - the module checks a bunch of common locations before asking the user.
Reply to this email directly or view it on GitHub https://github.com/timboudreau/nb-nodejs/issues/3#issuecomment-20843956 . https://github.com/notifications/beacon/64zXx3b1j_rxEicCVqtmcE6vSqGHHbD0gy9 43s4bVAtQJp723WfLeMSyroCsdCmQ.gif
Thanks! Github is good for capturing issues.
Yeah, I think the plugin dependency problem is likely a NetBeans issue - looks like the update center URL is wrong. I wrote the simple.project.templates module when I was still at Sun writing JavaCard support, my last project there - so as an accident of history, it is part of the JavaCard cluster. So this was resolved by fixing the update center URL?
Yeah, installed fine after manually downloading and installing the dependency and I haven’t seen any other issues.
From: Tim Boudreau [mailto:notifications@github.com] Sent: Friday, July 12, 2013 11:34 PM To: timboudreau/nb-nodejs Cc: Terry Subject: Re: [nb-nodejs] Add plugin is not working (#3)
Thanks! Github is good for capturing issues.
Yeah, I think the plugin dependency problem is likely a NetBeans issue - looks like the update center URL is wrong. I wrote the simple.project.templates module when I was still at Sun writing JavaCard support, my last project there - so as an accident of history, it is part of the JavaCard cluster. So this was resolved by fixing the update center URL?
— Reply to this email directly or view it on GitHub https://github.com/timboudreau/nb-nodejs/issues/3#issuecomment-20905588 . https://github.com/notifications/beacon/64zXx3b1j_rxEicCVqtmcE6vSqGHHbD0gy943s4bVAtQJp723WfLeMSyroCsdCmQ.gif
Can it works on Netbeans 7.4 on Windows ?
It should. File a bug if there are any problems. If you want to easily install it, you can set up this update server following the instructions at the top of the page.
Thanks, it seems to work.
On latest version of NetBeans 7.3 (Windows 7 and Linux Mint Mate 14) I can't install this plugin, nothing happens when I add file in [Add Plugins] on downloaded tab in NB. File is from here http://timboudreau.com/builds/job/NetBeans-NodeJS-Plugin/lastSuccessfulBuild/artifact/node-projects/target/nbm/nodejs-2.7.nbm
Best regards!