You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Tim Barham (JIRA)" <ji...@apache.org> on 2015/06/16 19:15:01 UTC

[jira] [Updated] (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:all-tabpanel ]

Tim Barham updated CB-9188:
---------------------------
    Description: 
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.

  was: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. 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.


> 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