cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Josh Soref (JIRA)" <>
Subject [jira] [Created] (CB-6120) `cordova platform` should not fail just because some platform is broken
Date Thu, 27 Feb 2014 17:53:19 GMT
Josh Soref created CB-6120:

             Summary: `cordova platform` should not fail just because some platform is broken
                 Key: CB-6120
             Project: Apache Cordova
          Issue Type: Bug
          Components: CLI
    Affects Versions: 3.4.0
         Environment: OS X 10.9.2
            Reporter: Josh Soref

I don't have whatever magical stuff is required for iOS development.
I ran `cordova-mobile-spec/`
I entered the `mobilespec` directory and did `cordova platform add blackberry10`
I tried to do `cordova platform` to see a list of my platforms:

mobilespec $ ~/Cordova/cordova-cli/bin/cordova platform
Error: platforms/ios/cordova/version: Command failed with exit code 1 Error output:
mobilespec/platforms/ios/cordova/version: line 33: mobilespec/platforms/ios/CordovaLib/VERSION:
No such file or directory
    at ChildProcess.whenDone (cordova-cli/src/superspawn.js:112:23)
    at ChildProcess.EventEmitter.emit (events.js:98:17)
    at maybeClose (child_process.js:735:16)
    at Socket.ChildProcess.spawn.stdin (child_process.js:948:11)
    at Socket.EventEmitter.emit (events.js:95:17)
    at Pipe.Socket._destroy._handle.onread [as close] (net.js:466:12)

Here's a slightly more verbose indication of the failure on the iOS side:
mobilespec $ sh -x platforms/ios/cordova/version
+ VERSION_FILE_PATH=.../platforms/ios/CordovaLib/VERSION
platforms/ios/cordova/version: line 33: platforms/ios/CordovaLib/VERSION: No such file or

Note that as a user, i don't care how many platforms are broken, I want a list of my platforms.

The expected output is roughly:
android (3.4.0-dev), blackberry10 (3.4.0), ios (broken)

This message was sent by Atlassian JIRA

View raw message