You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2014/06/26 23:41:24 UTC

[jira] [Commented] (CB-7037) platform check doesn't warn when it can't install a platform

    [ https://issues.apache.org/jira/browse/CB-7037?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14045234#comment-14045234 ] 

ASF GitHub Bot commented on CB-7037:
------------------------------------

GitHub user jsoref opened a pull request:

    https://github.com/apache/cordova-lib/pull/42

    CB-7037 platform check doesn't warn when it can't install a platform

    cordova platform check will now report when:
     * it can't create a platform
     * it can't run a new platform version script
     * a new platform version script doesn't report a version

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/jsoref/cordova-lib cb_7037

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/cordova-lib/pull/42.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #42
    
----
commit cd2c47e2a4ea936e0507a2214cebae0a75b86d46
Author: Josh Soref <js...@blackberry.com>
Date:   2014-06-26T21:38:45Z

    CB-7037 platform check doesn't warn when it can't install a platform
    
    cordova platform check will now report when:
     * it can't create a platform
     * it can't run a new platform version script
     * a new platform version script doesn't report a version

----


> platform check doesn't warn when it can't install a platform
> ------------------------------------------------------------
>
>                 Key: CB-7037
>                 URL: https://issues.apache.org/jira/browse/CB-7037
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: CLI, CordovaLib
>    Affects Versions: 3.5.0
>            Reporter: Josh Soref
>
> `cordova platform check` basically tries to create a new project with the same platforms as in your current project. It doesn't complain about projects for which it can't get a version - the original thinking was:
> {quote}
>                 /* If a platform doesn't install, then we can't realistically suggest updating */
> {quote}
> https://github.com/apache/cordova-lib/blob/0abfcded491fc4e15e24992ba101a5863513a1a7/cordova-lib/src/cordova/platform.js#L250-L251
> The problem is that if you try to add android, it will often fail because one or both of "android" or "ant" will be missing from your path. Since check can't install android, it can't get its version and thus can't determine it isn't current. 
> We should add some logic so that it can report that it can't determine instead of making the admittedly stronger claim of "up-to-date". 
> {quote}
> https://github.com/apache/cordova-lib/blob/0abfcded491fc4e15e24992ba101a5863513a1a7/cordova-lib/src/cordova/platform.js#L262
> {quote}



--
This message was sent by Atlassian JIRA
(v6.2#6252)