cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-7846) Fix plugin deletion error when dependency plugin does not exist
Date Wed, 22 Oct 2014 09:01:34 GMT

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

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

GitHub user sgrebnov opened a pull request:

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

    CB-7846 Fix plugin deletion when dependency plugin does not exist

    https://issues.apache.org/jira/browse/CB-7846

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

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

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

    https://github.com/apache/cordova-lib/pull/110.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 #110
    
----
commit ecbecd0988dbf0fd8255fa7ba6ce4e5df4b97b49
Author: sgrebnov <v-segreb@microsoft.com>
Date:   2014-10-22T08:59:05Z

    CB-7846 Fix plugin deletion when dependency plugin does not exist

----


> Fix plugin deletion error 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: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Mime
View raw message