cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Josh Soref (JIRA)" <>
Subject [jira] [Commented] (CB-7033) cordova platform check command not working
Date Mon, 20 Oct 2014 21:00:34 GMT


Josh Soref commented on CB-7033:

For reference, broken means that the version script failed.

There are various ways for things like that to happen.

One way is for a script/file which your version script depends on to go missing/lose its execute

The current cordova-android version script is pretty self contained, so it should either fail
because it lost its execute bit, or in this case it's so old that it depended on lots of other

The reason that platform check didn't say anything is that you probably didn't have enough
of the android system in your path.

Roughly, if you can't do: cordova platform add android (typically because android and ant
aren't in your path), then it doesn't make sense to say "cordova android (version unknown
<- due to broken version script) could be updated to cordova android (supposedly version
X, but won't actually install)".

Instead of cordova platform check giving something really complicated/confusing, it currently
just stays mum when it can't express something helpful.

I think the "up-to-date" message should be changed to "No platforms can be updated at this
time." which is more accurate.

It should also suggest checking to see if cordova itself is current, since if you're running
cordova 3.4.1, and the current version is cordova 4.0.0, the check system won't be able to
tell you about a newer version of cordova-android than the one that shipped w/ 3.4.1.

> cordova platform check command not working
> ------------------------------------------
>                 Key: CB-7033
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: CLI
>    Affects Versions: 3.4.0
>            Reporter: Victor Adrian Sosa Herrera
>            Priority: Minor
> I have an app with Android installed and I know it was created with Cordova 3.3.1-0.1.2.
> After running this command with a 3.4.1-1.0. CLI I get the following
> {{$ cordova platform check}}
> {{All platforms are up-to-date.}}
> But after running cordova platform ls I get the following
> {{$ cordova platform ls}}
> {{Installed platforms: android broken}}
> {{Available platforms: amazon-fireos, blackberry10, firefoxos, ubuntu}}
> Using _platform check_ arguments I don't get the result I'm looking for (a platform out-of-date),
while using _platform ls_ it's not very clear, but I presume the _broken_ platform is like
an out-of-date message

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message