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

Sergey Grebnov updated CB-7846:
-------------------------------
    Summary: Fix plugin deletion when dependency plugin does not exist  (was: 
Fix plugin deletion error when dependency plugin does not exist)

> Fix plugin deletion when dependency plugin does not exist
> ---------------------------------------------------------
>
>                 Key: CB-7846
>                 URL: https://issues.apache.org/jira/browse/CB-7846
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: CordovaLib, Plugman
>    Affects Versions: 4.0.0
>            Reporter: Sergey Grebnov
>            Assignee: Sergey Grebnov
>              Labels: lib, plugman
>
> Could be reproduced by the following two ways
> 1. Add plugin w/ dependency w/o adding any platform
> {code}
> cordova create removetest
> cd remotetest
> cordova plugin add com.msopentech.azure-mobile-services
> cordova remove com.msopentech.azure-mobile-services
> {code}
> 2. Removing dependency plugin manually
> {code}
> cordova create removetest
> cd remotetest
> cordova platform add android
> cordova plugin add com.msopentech.azure-mobile-services
> // open plugins directory and manually remove org.apache.cordova.inappbrowser 
> folder
> cordova remove com.msopentech.azure-mobile-services
> {code}
> There is the following error in both cases
> {code}
> Removing "com.msopentech.azure-mobile-services"
> Error: ENOENT, no such file or directory 'c:\temp\issues\pluginUninstall\plu
> gins\org.apache.cordova.inappbrowser\plugin.xml'
>     at Object.fs.openSync (fs.js:432:18)
>     at Object.fs.readFileSync (fs.js:289:15)
>     at Object.module.exports.parseElementtreeSync (C:\Users\Sergei\AppData\R
> oaming\npm\node_modules\cordova\node_modules\cordova-lib\src\util\xml-helper
> s.js:121:27)
>     at findDependencies (C:\Users\Sergei\AppData\Roaming\npm\node_modules\co
> rdova\node_modules\cordova-lib\src\plugman\uninstall.js:121:34)
>     at C:\Users\Sergei\AppData\Roaming\npm\node_modules\cordova\node_modules
> \cordova-lib\src\plugman\uninstall.js:126:17
>     at Array.forEach (native)
>     at findDependencies (C:\Users\Sergei\AppData\Roaming\npm\node_modules\co
> rdova\node_modules\cordova-lib\src\plugman\uninstall.js:123:14)
>     at Function.module.exports.uninstallPlugin (C:\Users\Sergei\AppData\Roam
> ing\npm\node_modules\cordova\node_modules\cordova-lib\src\plugman\uninstall.
> js:130:5)
>     at C:\Users\Sergei\AppData\Roaming\npm\node_modules\cordova\node_modules
> \cordova-lib\src\cordova\plugin.js:209:54
>     at _fulfilled (C:\Users\Sergei\AppData\Roaming\npm\node_modules\cordova\
> node_modules\q\q.js:798:54)
> {code}



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to