James Keshavarzi created CB-7808:
------------------------------------
Summary: loadLocalPlugins error when installing local plugin with
dependency on local plugin
Key: CB-7808
URL: https://issues.apache.org/jira/browse/CB-7808
Project: Apache Cordova
Issue Type: Bug
Components: Plugman
Affects Versions: 3.6.0, 4.0.0
Reporter: James Keshavarzi
The following error occurs when adding a local plugin that has a dependency on
a local plugin. Most common use case is adding a test plugin that uses the
org.apache.cordova.test-framework and adds the plugins being tested using a
relative path (see below).
<dependency id="com.blackberry.document"
url="."
subdir="plugin" />
<dependency id="org.apache.cordova.test-framework"
url="https://git-wip-us.apache.org/repos/asf/cordova-plugin-test-framework.git"
/>
----Steps to reproduce----
cordova create appTest
cordova platform add blackberry10
cordova platform add android
cordova plugin add ~/local-plugin/
Installing "com.blackberry.document" for blackberry10
Failed to install 'com.blackberry.document':Error: loadLocalPlugins called
twice with different search paths.Support for this is not implemented.
at loadLocalPlugins
(/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/fetch.js:165:19)
at findLocalPlugin
(/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/fetch.js:193:5)
at Object.fetchPlugin
(/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/fetch.js:111:25)
at possiblyFetch
(/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js:101:24)
at installDependency
(/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js:498:16)
at
/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js:364:32
at _fulfilled
(/usr/local/lib/node_modules/cordova/node_modules/q/q.js:798:54)
at self.promiseDispatch.done
(/usr/local/lib/node_modules/cordova/node_modules/q/q.js:827:30)
at Promise.promise.promiseDispatch
(/usr/local/lib/node_modules/cordova/node_modules/q/q.js:760:13)
at /usr/local/lib/node_modules/cordova/node_modules/q/q.js:821:14
Failed to install 'com.blackberry.document.tests':Error: loadLocalPlugins
called twice with different search paths.Support for this is not implemented.
at loadLocalPlugins
(/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/fetch.js:165:19)
at findLocalPlugin
(/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/fetch.js:193:5)
at Object.fetchPlugin
(/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/fetch.js:111:25)
at possiblyFetch
(/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js:101:24)
at installDependency
(/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js:498:16)
at
/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js:364:32
at _fulfilled
(/usr/local/lib/node_modules/cordova/node_modules/q/q.js:798:54)
at self.promiseDispatch.done
(/usr/local/lib/node_modules/cordova/node_modules/q/q.js:827:30)
at Promise.promise.promiseDispatch
(/usr/local/lib/node_modules/cordova/node_modules/q/q.js:760:13)
at /usr/local/lib/node_modules/cordova/node_modules/q/q.js:821:14
Error: loadLocalPlugins called twice with different search paths.Support for
this is not implemented.
at loadLocalPlugins
(/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/fetch.js:165:19)
at findLocalPlugin
(/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/fetch.js:193:5)
at Object.fetchPlugin
(/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/fetch.js:111:25)
at possiblyFetch
(/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js:101:24)
at installDependency
(/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js:498:16)
at
/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js:364:32
at _fulfilled
(/usr/local/lib/node_modules/cordova/node_modules/q/q.js:798:54)
at self.promiseDispatch.done
(/usr/local/lib/node_modules/cordova/node_modules/q/q.js:827:30)
at Promise.promise.promiseDispatch
(/usr/local/lib/node_modules/cordova/node_modules/q/q.js:760:13)
at /usr/local/lib/node_modules/cordova/node_modules/q/q.js:821:14
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]