You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "jcesarmobile (JIRA)" <ji...@apache.org> on 2018/12/02 13:00:00 UTC

[jira] [Closed] (CB-4789) cordova tool should recognize when platforms/$plat directory is deleted

     [ https://issues.apache.org/jira/browse/CB-4789?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

jcesarmobile closed CB-4789.
----------------------------
    Resolution: Cannot Reproduce

I can't reproduce, so it's probably fixed.
If still can reproduce, create a new issue on the corresponding github repository

> cordova tool should recognize when platforms/$plat directory is deleted
> -----------------------------------------------------------------------
>
>                 Key: CB-4789
>                 URL: https://issues.apache.org/jira/browse/CB-4789
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: cordova-cli
>         Environment: Mac OSX 10.8.4, Cordova CLI 3.0.9, Xcode build tools 4.6.3 (also tried Xcode 5.0 build tools).
>            Reporter: Owen
>            Priority: Minor
>
> Steps:
> {code}
> cordova create Project com.foo.bar Project
> cd Project
> cordova platform add ios
> cordova plugin add ...
> rm -rf platforms/ios
> cordova platform add ios
> {code}
> This leaves you in a bad state where things work, but plugins are not re-installed by platform add.
> Maybe as a fix we should have some precondition checks before running commands. E.g. validate that our cached state-of-the-world matches reality. In this specific case, the `platform add ios` should first detect that ios was deleted and internally run `platform rm ios` first.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org