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 2015/06/16 19:17:01 UTC

[jira] [Commented] (CB-9188) Confusing error after delete plugin folder then prepare

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

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

GitHub user TimBarham opened a pull request:

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

    CB-9188 Confusing error after delete plugin folder then prepare.

    Catch this scenario and display a useful message.

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

    $ git pull https://github.com/MSOpenTech/cordova-lib CB-9188

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

    https://github.com/apache/cordova-lib/pull/249.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 #249
    
----
commit 7966f08c94cc64167c2f094c73202678f41576f2
Author: Tim Barham <ti...@microsoft.com>
Date:   2015-06-16T17:13:18Z

    CB-9188 Confusing error after delete plugin folder then prepare.
    
    Catch this scenario and display a useful message.

----


> Confusing error after delete plugin folder then prepare
> -------------------------------------------------------
>
>                 Key: CB-9188
>                 URL: https://issues.apache.org/jira/browse/CB-9188
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: CordovaLib
>            Reporter: Tim Barham
>
> If you delete a plugin folder (because you thought that was a good way to remove the plugin, for example) you end up getting a confusing error every time we prepare:
> {noformat}
> $ cordova prepare
> Error: ENOENT, no such file or directory 'd:\CordovaApps\test1\plugins\org.apache.cordova.camera\plugin.xml'
>     at Error (native)
>     at Object.fs.openSync (fs.js:500:18)
>     at Object.fs.readFileSync (fs.js:352:15)
>     at Object.module.exports.parseElementtreeSync (d:\git\cordova-lib\cordova-lib\src\util\xml-helpers.js:118:27)
>     at new PluginInfo (d:\git\cordova-lib\cordova-lib\src\PluginInfo.js:320:37)
>     at PluginInfoProvider.get (d:\git\cordova-lib\cordova-lib\src\PluginInfoProvider.js:35:32)
>     at d:\git\cordova-lib\cordova-lib\src\plugman\prepare.js:79:45
>     at Array.forEach (native)
>     at Object.handlePrepare (d:\git\cordova-lib\cordova-lib\src\plugman\prepare.js:77:24)
>     at d:\git\cordova-lib\cordova-lib\src\cordova\prepare.js:109:21
> {noformat}
> While this is not a supported scenario, it would be good if we displayed a useful error message to guide the user how to proceed.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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