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 248351 - not detecting cordova or git on PATH
Summary: not detecting cordova or git on PATH
Status: RESOLVED INCOMPLETE
Alias: None
Product: web
Classification: Unclassified
Component: Cordova (show other bugs)
Version: 8.0.1
Hardware: Macintosh Mac OS X
: P3 normal (vote)
Assignee: Roman Svitanic
URL:
Keywords:
: 248462 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-11-03 03:44 UTC by cunneen
Modified: 2015-11-20 16:34 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (99.00 KB, text/plain)
2014-11-03 03:44 UTC, cunneen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description cunneen 2014-11-03 03:44:25 UTC
First of all, this error message needs fixing: "NetBeans cannot find cordova or git on your PATH". Which is it? Cordova or git?

Secondly, cordova and git are both on my PATH, but NetBeans doesn't find them for some reason.

$ cordova --version && git --version && node --version
4.0.0
git version 1.9.3 (Apple Git-50)
v0.10.31

$ which cordova && which git && which node
/Users/mikecunneen/.nvm/v0.10.31/bin/cordova
/usr/bin/git
/Users/mikecunneen/.nvm/v0.10.31/bin/node

$ echo ${PATH}
/Users/mikecunneen/.nvm/v0.10.31/bin:/Users/mikecunneen/.rvm/gems/ruby-2.0.0-p247/bin:/Users/mikecunneen/.rvm/gems/ruby-2.0.0-p247@global/bin:/Users/mikecunneen/.rvm/rubies/ruby-2.0.0-p247/bin:/Users/mikecunneen/.rvm/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin:/opt/ImageMagick/bin:/usr/texbin:/Users/mikecunneen/bin:/usr/libexec:/System/Library/CoreServices:/Developer/usr/bin:/Users/mikecunneen/Desktop/ADT/sdk/tools:/Users/mikecunneen/Desktop/ADT/sdk/platform-tools:/Users/mikecunneen/Desktop/ADT/sdk/build-tools:/usr/local/apache-ant/bin:/Users/mikecunneen/.meteor


Product Version = NetBeans IDE 8.0.1 (Build 201408251540)
Operating System = Mac OS X version 10.9.5 running on x86_64
Java; VM; Vendor = 1.8.0
Runtime = Java HotSpot(TM) 64-Bit Server VM 25.0-b70
Comment 1 cunneen 2014-11-03 03:44:31 UTC
Created attachment 150218 [details]
IDE log
Comment 2 Roman Svitanic 2014-11-03 16:22:08 UTC
Thanks for the report, could you please try to install cordova to /usr/local/bin/cordova using "sudo npm install -g cordova"?

$ which cordova
/usr/local/bin/cordova

Is then issue reproducible?
Thanks.

(In reply to cunneen from comment #0)
> First of all, this error message needs fixing: "NetBeans cannot find cordova
> or git on your PATH". Which is it? Cordova or git?

I agree that the message could be more informative.
Comment 3 cunneen 2014-11-04 01:15:42 UTC
Thanks for your reply.

I use nvm (node version manager) so I can avoid having to use sudo for such commands. So if I was to run the exact command you gave me, it would still install into my .nvm subfolder. This way, my students can experience installing and using node and cordova without requiring administrator privileges in the computer lab where I teach.

To answer your question, I tried putting a symbolic link to my cordova into /usr/local/bin:

$ sudo ln -s `which cordova` /usr/local/bin/cordova
$ /usr/local/bin/cordova --version
4.0.0

I still get the same problem with NetBeans' cordova plugin. "NetBeans cannot find cordova or git on your PATH"
Comment 4 Roman Svitanic 2014-11-06 13:36:58 UTC
*** Bug 248462 has been marked as a duplicate of this bug. ***
Comment 5 Roman Svitanic 2015-02-10 14:31:53 UTC
Could you please try to go to the NetBeans Preferences > HTML/JS > Mobile Platforms and see whether there is a correctly recognized version of cordova or a warning that cordova is not installed. Thanks!
Comment 6 cunneen 2015-02-10 15:50:11 UTC
Hi Rob, I don't have any such item in my netbeans preferences. There is no HTML/JS.

I'm on Mac OS X, NetBeans IDE 8.0.2 (Build 201411181905)
Comment 7 Roman Svitanic 2015-02-10 16:14:55 UTC
Sorry, I've forgotten to add that the given instructions apply to to current dev builds only.
Comment 8 Tomas Stupka 2015-11-20 16:34:56 UTC
any update on this?