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 237918 - Cannot create Cordova project on Cordova 3.1.0-0.2.0 - Path already exists
Summary: Cannot create Cordova project on Cordova 3.1.0-0.2.0 - Path already exists
Status: VERIFIED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: Cordova (show other bugs)
Version: 7.4
Hardware: PC Linux
: P1 normal (vote)
Assignee: Jan Becicka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-03 12:31 UTC by Vladimir Riha
Modified: 2013-11-20 08:16 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Riha 2013-11-03 12:31:12 UTC
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)
Comment 1 Vladimir Riha 2013-11-03 12:36:07 UTC
I think this is a good patch candidate
Comment 2 markiewb 2013-11-03 21:55:14 UTC
There were comments about the reason on 
http://forums.netbeans.org/post-152075.html
Comment 3 Jan Becicka 2013-11-04 15:04:15 UTC
I have a fix. Unfortunately I'm not able to fetch due to abort: error: Operation timed out.
Comment 4 Jan Becicka 2013-11-05 08:46:31 UTC
Changeset: cca6e818bff2
Author:    Jan Becicka <jbecicka@netbeans.org>
Date:      2013-11-04 14:00
Message:
Comment 5 Vladimir Riha 2013-11-06 12:34:18 UTC
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)
Comment 6 Jan Becicka 2013-11-13 09:21:01 UTC
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
Comment 7 Vladimir Riha 2013-11-20 08:16:23 UTC
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