[
https://issues.apache.org/jira/browse/CB-6643?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Bas Bosman resolved CB-6643.
----------------------------
Resolution: Fixed
Fixed by commit d6997c46e74cae0df1ff5d32c774dd28d08991b9
> Missing input param in ConfigParser.js
> --------------------------------------
>
> Key: CB-6643
> URL: https://issues.apache.org/jira/browse/CB-6643
> Project: Apache Cordova
> Issue Type: Bug
> Components: CLI
> Affects Versions: 3.4.0
> Environment: Ubuntu x86 13.10
> Reporter: Adam Fónagy
> Assignee: Bas Bosman
> Labels: javascript, parameter, platform, ubuntu
> Original Estimate: 1h
> Remaining Estimate: 1h
>
> when type cordova platform add ubuntu you get the following error:
> ReferenceError: name is not defined
> at Object.ConfigParser.setDescription
> (/usr/local/lib/node_modules/cordova/src/ConfigParser.js:70:45)
> at Object.module.exports.update_from_config
> (/usr/local/lib/node_modules/cordova/src/metadata/ubuntu_parser.js:74:21)
> at Object.module.exports.update_project
> (/usr/local/lib/node_modules/cordova/src/metadata/ubuntu_parser.js:156:21)
> at /usr/local/lib/node_modules/cordova/src/prepare.js:113:31
> 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
> at flush (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:108:17)
> at process._tickCallback (node.js:415:13)
> This is because in ConfigParser.js at line 69 the input parameter is missing.
> This is how the function looks like in Cordova 3.4.0:
> setDescription: function() {
> this.doc.find('description').text = name;
> var el = findOrCreate(this.doc, 'description');
> },
> And this is how it should:
> setDescription: function(name) {
> this.doc.find('description').text = name;
> var el = findOrCreate(this.doc, 'description');
> },
--
This message was sent by Atlassian JIRA
(v6.2#6252)