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.
Doesn't matter if it is new Cordova type project or HTML5 with created Cordova resources, either way it fails with output below. I've found [1] issue which could cause this behaviour. Workaround is to use older Cordova 3.1.0-0.1.0 [1] https://issues.apache.org/jira/browse/CB-4748 cordova -d create . com.coolappz.HTML5Application2 HTML5Application2 Error: Path already exists and is not empty: /var/www/HTML5Application2 at CLI.create (/usr/local/lib/node_modules/cordova/src/create.js:63:25)Creating a new cordova project with name "HTML5Application2" and id "com.coolappz.HTML5Application2" at location "/var/www/HTML5Application2" at new CLI (/usr/local/lib/node_modules/cordova/src/cli.js:105:30) at Object.<anonymous> (/usr/local/lib/node_modules/cordova/bin/cordova:41:16) at Module._compile (module.js:456:26) at Object.Module._extensions..js (module.js:474:10) at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12) at Function.Module.runMain (module.js:497:10) at startup (node.js:119:16) at node.js:901:3 /var/www/HTML5Application2/nbproject/build.xml:78: exec returned: 1 BUILD FAILED (total time: 0 seconds) Product Version: NetBeans IDE 7.4 (Build 201310111528) Java: 1.7.0_45; Java HotSpot(TM) Client VM 24.45-b08 Runtime: Java(TM) SE Runtime Environment 1.7.0_45-b18 System: Linux version 3.2.0-48-generic-pae running on i386; UTF-8; en_US (nb)
I think this is a good patch candidate
There were comments about the reason on http://forums.netbeans.org/post-152075.html
I have a fix. Unfortunately I'm not able to fetch due to abort: error: Operation timed out.
Changeset: cca6e818bff2 Author: Jan Becicka <jbecicka@netbeans.org> Date: 2013-11-04 14:00 Message:
Works fine on Ubuntu and Windows8. I've tried to create Cordova project / Create resources in HTML5, clean, build, run. Verified Product Version: NetBeans IDE Dev (Build 201311060001) 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-b32 System: Windows 8 version 6.2 running on amd64; Cp1252; en_US (nb)
changeset: 275825:98549455e166 branch: release74 user: Jan Becicka <jbecicka@netbeans.org> date: Mon Nov 04 14:00:12 2013 +0100 summary: Issue #237918 - Cannot create Cordova project on Cordova 3.1.0-0.2.0 - Path already exists
Verified in patch Product Version: NetBeans IDE 7.4 (Build 201310111528) Updates: NetBeans IDE is updated to version NetBeans 7.4 Patch 1 Java: 1.7.0_45; Java HotSpot(TM) Client VM 24.45-b08 Runtime: Java(TM) SE Runtime Environment 1.7.0_45-b18 System: Linux version 3.2.0-48-generic-pae running on i386; UTF-8; en_US (nb