Sébastien Blanc created CB-6082:
-----------------------------------

             Summary: Installing plugins fails when Firefox platform is present
                 Key: CB-6082
                 URL: https://issues.apache.org/jira/browse/CB-6082
             Project: Apache Cordova
          Issue Type: Bug
          Components: FirefoxOS, Plugman
    Affects Versions: 3.4.0
            Reporter: Sébastien Blanc


Once the firefoxos platform is added it fails to install new plugins using : 
cordova plugin add xx

I tested with Contacts, Device and my own plugin.

This is the output : 
Error: ENOENT, no such file or directory 
'/home/sebastien/aerogear/ffos/ffsupport/platforms/firefoxos/www/config.xml'
    at Object.fs.openSync (fs.js:427:18)
    at Object.fs.readFileSync (fs.js:284:15)
    at Object.module.exports.parseElementtreeSync 
(/home/sebastien/nvm/v0.10.23/lib/node_modules/cordova/node_modules/plugman/src/util/xml-helpers.js:119:27)
    at Object.module.exports.package_name 
(/home/sebastien/nvm/v0.10.23/lib/node_modules/cordova/node_modules/plugman/src/platforms/firefoxos.js:10:38)
    at Object.module.exports.generate_plugin_config_munge 
(/home/sebastien/nvm/v0.10.23/lib/node_modules/cordova/node_modules/plugman/src/util/config-changes.js:100:53)
    at Object.module.exports.add_plugin_changes 
(/home/sebastien/nvm/v0.10.23/lib/node_modules/cordova/node_modules/plugman/src/util/config-changes.js:300:43)
    at 
/home/sebastien/nvm/v0.10.23/lib/node_modules/cordova/node_modules/plugman/src/util/config-changes.js:440:28
    at Array.forEach (native)
    at Object.module.exports.process 
(/home/sebastien/nvm/v0.10.23/lib/node_modules/cordova/node_modules/plugman/src/util/config-changes.js:439:49)
    at Object.handlePrepare 
(/home/sebastien/nvm/v0.10.23/lib/node_modules/cordova/node_modules/plugman/src/prepare.js:69:20)

So it's seems to look for the config.xml at the wrong place.

The problem seems to be in plugman here :
 
https://github.com/apache/cordova-plugman/blob/master/src/platforms/firefoxos.js#L9
 

When changing "config.xml" to "../config.xml" I am able to install the plugins.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to