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 236730 - Unable to create Cordova Projects with cordova 3.1.0
Summary: Unable to create Cordova Projects with cordova 3.1.0
Status: VERIFIED INCOMPLETE
Alias: None
Product: web
Classification: Unclassified
Component: Cordova (show other bugs)
Version: 7.4
Hardware: PC Windows 8 x64
: P1 normal (vote)
Assignee: Jan Becicka
URL:
Keywords: RELNOTE
: 236838 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-10-04 02:56 UTC by c0daman
Modified: 2014-06-25 11:16 UTC (History)
5 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (32.80 KB, text/plain)
2013-10-04 02:56 UTC, c0daman
Details

Note You need to log in before you can comment on or make changes to this bug.
Description c0daman 2013-10-04 02:56:13 UTC
Product Version = NetBeans IDE 7.4 RC2 (Build 201309252201)
Operating System = Mac OS X version 10.8.5 running on x86_64
Java; VM; Vendor = 1.7.0_40
Runtime = Java HotSpot(TM) 64-Bit Server VM 24.0-b56

Unable to create Cordova projects or open the sample COrdova application. The IDE prints the error: "netbeans cannot find cordova or git on your PATH... install cordova and restart the IDE"
I confirmed that BOTH cordova and git are accessible from the shell and their paths are in the $PATH var.
Comment 1 c0daman 2013-10-04 02:56:37 UTC
Created attachment 140789 [details]
IDE log
Comment 2 Jan Becicka 2013-10-04 06:12:16 UTC
please go to command line and send me output of

> cordova -v

and

> git --version

thanks.
Comment 3 c0daman 2013-10-04 11:39:50 UTC
here is the output:


$ cordova -v
3.1.0-0.1.0

$ git --version
git version 1.8.3.2
Comment 4 Jan Becicka 2013-10-04 12:27:58 UTC
cordova changed their versioning scheme and netbeans does not recognize 3.1.0-0.1.0 version as release version. It expects version in format major.minor.patch.

In short netbeans does not work with cordova 3.1.0

workaround is to use cordova 3.0.10
> sudo npm install -g cordova@3.0.10
Comment 5 Jan Becicka 2013-10-04 12:31:28 UTC
Changeset: e9b86fb92a6b
Author:    Jan Becicka <jbecicka@netbeans.org>
Date:      2013-10-04 14:24
Message:
Comment 6 c0daman 2013-10-04 13:48:08 UTC
Interesting, in that case I believe many subsequent bugs will be filed as more developers try it out. Unless they previously had a compatible Cordova installation, the link provided on the netbeans form will instruct them to install  the latest cordova version... Hopefully netbeans will be updated to recognize their versioning scheme.
Comment 7 hammoudehalamri 2013-10-06 07:25:47 UTC
I have the same issue , and I already have cordova 3.0.10
Comment 8 Vladimir Riha 2013-10-07 14:52:28 UTC
*** Bug 236838 has been marked as a duplicate of this bug. ***
Comment 9 Vladimir Riha 2013-10-07 15:33:08 UTC
Works fine now with Cordova 3.1.0-0.1.0


Product Version: NetBeans IDE Dev (Build 201310070001)
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-b14
System: Mac OS X version 10.8.5 running on x86_64; UTF-8; en_US (nb)
Comment 10 Marcoevich 2013-10-08 10:31:46 UTC
Doesn't work here with Cordova 3.1.0-0.1.0

Question: will Netbeans be updated anytime soon to recognize the new versioning scheme?
Comment 11 Jan Becicka 2013-10-08 11:33:02 UTC
Fix will be available via patch very soon
Comment 12 Jan Becicka 2013-10-08 14:55:41 UTC
changeset:   273597:646a37cffee1
branch:      release74
user:        Jan Becicka <jbecicka@netbeans.org>
date:        Fri Oct 04 14:24:35 2013 +0200
summary:     Issue #236730 - Unable to create Cordova Projects
Comment 13 Vladimir Riha 2013-10-10 06:25:55 UTC
Verified in 7.4patch, I can create project with Cordova 3.1.0-0.1.0

Product Version: NetBeans IDE 7.4 (Build 201310012201)
Java: 1.7.0_45; Java HotSpot(TM) Client VM 24.45-b08
Runtime: Java(TM) SE Runtime Environment 1.7.0_45-b13
System: Linux version 3.2.0-48-generic-pae running on i386; UTF-8; en_US (nb)
Comment 14 vkryzhov 2013-10-22 13:30:23 UTC
The same error on Windows 7 Enterprise
>cordova.cmd -v
3.0.1 (3.0.10 and 3.1 tried too)
>git --version
git version 1.7.8.msysgit.0
>java -version
java version "1.7.0_45"
Java(TM) SE Runtime Environment (build 1.7.0_45-b18)
Java HotSpot(TM) 64-Bit Server VM (build 24.45-b08, mixed mode)

Product Version: NetBeans IDE 7.4 (Build 201310111528)
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: Windows 7 version 6.1 running on amd64; Cp1251; en_US (nb)
User directory: C:\Users\vkr\AppData\Roaming\NetBeans\7.4
Cache directory: C:\Users\vkr\AppData\Local\NetBeans\Cache\7.4

Where is patch? Are you going to share one?
Comment 15 Marcoevich 2013-10-22 13:34:40 UTC
@vkryzhov, try the latest Netbeans dev build. That one will work guaranteed ;)

http://bits.netbeans.org/netbeans/trunk/nightly/latest/
Comment 16 Jan Becicka 2013-10-23 09:34:06 UTC
The fix is integrated in NetBeans 7.4 FCS. No need for patches.
Comment 17 mrthehud 2013-11-29 18:05:30 UTC
Is this fixed in 7.4? I've installed module updates, but my install still thinks it can't find cordova or git.

Git in general works fine in netbeans, and the Error message I get when trying to create a cordova project is "Install Cordova and restart NetBeans"


Netbeans:
Product Version: NetBeans IDE 7.4 (Build 201310111528)
Updates: NetBeans IDE is updated to version NetBeans 7.4 Patch 1

Cordova:
james@james:~$ which cordova
/home/james/software/bin/cordova
james@james:~$ cordova -v
3.2.0-0.2.0

Git:
james@james:~$ which git
/usr/bin/git
james@james:~$ git --version
git version 1.7.9.5
Comment 18 mrthehud 2013-12-02 10:37:08 UTC
Actually, this is STILL a problem with the dev build (20131202):
james@james:~$ cordova -v
3.1.0-0.2.0

…
"Install Cordova and restart NetBeans"

Anyone know of a reasonable guide to build Netbeans from source? I'd happily fix this if I could do that.
Comment 19 Jan Becicka 2013-12-02 11:22:01 UTC
> Anyone know of a reasonable guide to build Netbeans from source? I'd happily
> fix this if I could do that.

http://wiki.netbeans.org/WorkingWithNetBeansSources

I think, that building netbeans is quite simple:

ant options to avoid OutOfMemory errors:
> export ANT_OPTS="-Xmx512m -XX:MaxPermSize=512m"

and then just
> hg clone http://hg.netbeans.org/main-silver/
> cd main-silver
> ant

> Actually, this is STILL a problem with the dev build (20131202):
You are on Linux? Mac?
Comment 20 zaid.fattuhi 2014-02-01 13:23:15 UTC
Hi all, 

I am facing this problem, its on Mac 10.9.1.

The versions are:
cordova --version
3.3.1-0.3.1

git --version
git version 1.8.4.2


I set the paths in .bash_profile:
export PATH=/usr/local/git/bin:$PATH
export PATH=/usr/local/bin:$PATH
export PATH=/usr/local/bin/npm:$PATH

export PATH=/usr/local/bin/cordova:$PATH


Netbeans details:
Product Version: NetBeans IDE 7.4 (Build 201310111528)
Updates: NetBeans IDE is updated to version NetBeans 7.4 Patch 2
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: Mac OS X version 10.9.1 running on x86_64; UTF-8; en_US (nb)
User directory: /Users/zaid/Library/Application Support/NetBeans/7.4
Cache directory: /Users/zaid/Library/Caches/NetBeans/7.4


What exactly do I need to do to make it work? Please help me.
Comment 21 zaid.fattuhi 2014-02-02 12:19:44 UTC
Hi, 

Just to add more details to my previous comment. I tried NetBeans7.4 (Patch2) on Windows, and works without any issue.

Windows (works!): 
Product Version: NetBeans IDE 7.4 (Build 201310111528)
Updates: NetBeans IDE is updated to version NetBeans 7.4 Patch 2
Java: 1.7.0_51; Java HotSpot(TM) 64-Bit Server VM 24.51-b03
Runtime: Java(TM) SE Runtime Environment 1.7.0_51-b13
System: Windows 7 version 6.1 running on amd64; Cp1252; en_IE (nb)
User directory: C:\Users\Zaid\AppData\Roaming\NetBeans\7.4
Cache directory: C:\Users\Zaid\AppData\Local\NetBeans\Cache\7.4


Mac (doesn't work, says Cordova and Git not installed):
Product Version: NetBeans IDE 7.4 (Build 201310111528)
Updates: NetBeans IDE is updated to version NetBeans 7.4 Patch 2
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: Mac OS X version 10.9.1 running on x86_64; UTF-8; en_US (nb)
User directory: /Users/zaid/Library/Application Support/NetBeans/7.4
Cache directory: /Users/zaid/Library/Caches/NetBeans/7.4
Comment 22 zaid.fattuhi 2014-02-02 22:42:31 UTC
Ok, I resolved the problem. I created new user in my Mac, and just worked like a charm!, something mu, st be wrong with my original account. But the good news that I can use it now with another user on my Mac!

Thanks,
Zaid
Comment 23 vashaj 2014-04-08 22:04:14 UTC
I have a fresh download of netbeans 8, cordova, Node JS and SDK but I'm still getting an error:

Netbeans cannot find cordova or git on your PATH.  

I have a Mac 10.9.2 Maverick

Here are my versions:
$ cordova —version 3.4.0-0.1.3
$ git —version git version 1.8.5.2

Path for SDK is in my bash_profile and 

I added the location of my SDK path under options in Netbean but I still can't use Cordova.  Can someone please direct me to how to get this working?

(adding a new user to my mac did not work for me unfortunately)
Comment 24 johnnyjenks 2014-06-25 11:16:10 UTC
I'm experiencing this too :(

Mac 10.9.3
git version 1.8.5.2 (Apple Git-48)
cordova 3.5.0-0.2.4
Netbeans 8


If I remove .bash_profile out of ~/ all works fine.

Contents of .bash_profile

[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*

(I have rvm installed with JewelryBox)

Contents of .bashrc

PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting


I have tried numerous combinations of 'export PATH' and adding 'PATH=....:$PATH' to both files all to no avail.

Anyone with any insight?