You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Vladimir Kotikov (JIRA)" <ji...@apache.org> on 2014/09/10 11:32:29 UTC
[jira] [Created] (CB-7509) cordova fails to add wp8 platform with
--usegit option
Vladimir Kotikov created CB-7509:
------------------------------------
Summary: cordova fails to add wp8 platform with --usegit option
Key: CB-7509
URL: https://issues.apache.org/jira/browse/CB-7509
Project: Apache Cordova
Issue Type: Bug
Components: CordovaLib
Affects Versions: 3.6.0
Reporter: Vladimir Kotikov
Priority: Critical
Fix For: 3.7.0
**Repro steps**
1. Get cordova-cli and cordova-lib from [dist/dev|https://dist.apache.org/repos/dist/dev/cordova/CB-7383/]
1. Create empty cordova project
2. add WP8 platform with --usegit option
cdv platform add wp8 --usegit -d
**Expected:**
Platform successfully added
**Actual:**
command fails with following output:
{noformat}
Requesting {"url":"https://git-wip-us.apache.org/repos/asf?p=cordova-wp8.git;a=snapshot;h=3.6.1;sf=tgz","strictSSL":true}...
Downloading cordova library for wp8...
Downloaded, unzipped and extracted 313341 byte response.
Download complete
Creating wp8 project...
Running command: C:\Users\vladimir.kotikov\.cordova\lib\wp\cordova\3.6.1\bin\create /s /c C:\Users\vladimir.kotikov\.cordova\lib\wp\cordova\3.6.1\bin\create d:\PROJECTS\Temp\test-usegit\platforms\wp8
io.cordova.hellocordova HelloCordova
Command finished with error code ENOENT: C:\Users\vladimir.kotikov\.cordova\lib\wp\cordova\3.6.1\bin\create /s,/c,C:\Users\vladimir.kotikov\.cordova\lib\wp\cordova\3.6.1\bin\create,d:\PROJECTS\Temp\test-usegit\platforms\wp8,io.cordova.hellocordova,HelloCordova
Error: C:\Users\vladimir.kotikov\.cordova\lib\wp\cordova\3.6.1\bin\create: Command failed with exit code ENOENT
at ChildProcess.whenDone (d:\cordova\cordova-lib\cordova-lib\src\cordova\superspawn.js:135:23)
at ChildProcess.EventEmitter.emit (events.js:95:17)
at Process.ChildProcess._handle.onexit (child_process.js:805:12)
{noformat}
Seems to be introduced by commit [60c42827|https://github.com/apache/cordova-lib/commit/60c42827a0e2c61729a65e904e798bf2e2830e7c]. 'subdirectory' field, that specifies directory inside repo, where platform package contents is placed was removes, so cordova can't find create script due to invalid path.
Commit already included in 3.6.1 release and corresponding cordova-lib already pushed to dist/dev
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)