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

Sergey Grebnov commented on CB-7677:
------------------------------------

Investigated, sent the following PR
https://github.com/apache/cordova-lib/pull/102

> dependency on File plugin when already installed causes all plugins to be 
> erased
> --------------------------------------------------------------------------------
>
>                 Key: CB-7677
>                 URL: https://issues.apache.org/jira/browse/CB-7677
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: CordovaLib
>            Reporter: Marcel Kinard
>            Priority: Blocker
>
> I'm running createmobilespec on master. Note that I have npm-link'ed 
> cordova-lib into cordova-plugman and cordova-cli. When I run 
> createmobilespec, it appears that it attempts to install the File plugin 
> twice, and then attempts to do a revert upon the unnecessary 2nd install:
> {code}
> Searchpath:  --searchpath /Users/marcelk/Developer/apache/
> Installing local test framework plugins...
> Installing "org.apache.cordova.test.whitelist" for android
> Installing "org.apache.cordova.test.echo" for android
> Installing "org.apache.cordova.test-framework" for android
> Installing "org.cordova.mobile-spec-dependencies" for android
> Installing "org.apache.cordova.battery-status" for android
> Installing "org.apache.cordova.camera" for android
> Installing "org.apache.cordova.console" for android
> Installing "org.apache.cordova.contacts" for android
> Installing "org.apache.cordova.device" for android
> Installing "org.apache.cordova.device-motion" for android
> Installing "org.apache.cordova.device-orientation" for android
> Installing "org.apache.cordova.dialogs" for android
> Installing "org.apache.cordova.file" for android
> Installing "org.apache.cordova.file-transfer" for android
> Installing "org.apache.cordova.file" for android
> Error during processing of action! Attempting to revert...
> Installing "org.apache.cordova.geolocation" for android
> Installing "org.apache.cordova.globalization" for android
> {code}
> When I try to run mobilespec I'm getting exceptions that plugins are missing. 
> And indeed they are:
> {code}
> marcelk-macbook:apache marcelk$ ls 
> mobilespec/platforms/android/src/org/apache/cordova/
> file                  media                   statusbar
> filetransfer          mediacapture            test
> globalization         networkinformation      vibration
> inappbrowser          splashscreen
> marcelk-macbook:apache marcelk$ 
> {code}
> Note that the native code for all the plugins alphabetically prior to File 
> are missing. I'm wondering if the revert is being a bit aggressive, in 
> addition to plugman unnecessarily attempting to install the File plugin as a 
> dependency when it is already installed.
> If I don't npm-link cordova-lib and just use the latest one in the npm 
> registry, then this problem doesn't exist. Methinks a problem has been 
> introduced since the last tools release.



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

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

Reply via email to