Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-7509

cordova fails to add wp8 platform with --usegit option

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Cannot Reproduce
    • Affects Version/s: 3.6.0
    • Fix Version/s: 3.7.0
    • Component/s: cordova-lib
    • Labels:

      Description

      Repro steps
      1. Get cordova-cli and cordova-lib from dist/dev
      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:

      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)
      

      Seems to be introduced by commit 60c42827. '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

        Attachments

          Activity

            People

            • Assignee:
              purplecabbage Jesse MacFadyen
              Reporter:
              vladimir.kotikov Vladimir Kotikov
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: