Trying to run createmobilespec as part of the tools release.
Running into this problem.
TypeError: Invalid Version: 0.1
at new SemVer
(/Users/stevengill/repo/cordova/cordova-lib/cordova-lib/node_modules/semver/semver.js:256:11)
at compare
(/Users/stevengill/repo/cordova/cordova-lib/cordova-lib/node_modules/semver/semver.js:409:10)
at Function.gt
(/Users/stevengill/repo/cordova/cordova-lib/cordova-lib/node_modules/semver/semver.js:438:10)
at
/Users/stevengill/repo/cordova/cordova-lib/cordova-lib/src/plugman/fetch.js:232:20
at Array.forEach (native)
at findLocalPlugin
(/Users/stevengill/repo/cordova/cordova-lib/cordova-lib/src/plugman/fetch.js:220:14)
at Q.when.then.then.options.plugin_src_dir
(/Users/stevengill/repo/cordova/cordova-lib/cordova-lib/src/plugman/fetch.js:110:25)
at _fulfilled
(/Users/stevengill/repo/cordova/cordova-lib/cordova-lib/node_modules/q/q.js:787:54)
at self.promiseDispatch.done
(/Users/stevengill/repo/cordova/cordova-lib/cordova-lib/node_modules/q/q.js:816:30)
at Promise.promise.promiseDispatch
(/Users/stevengill/repo/cordova/cordova-lib/cordova-lib/node_modules/q/q.js:749:13)
Looking into it, the issue comes up when trying to install
cordova-plugin-test-framework.
Here is the line in cordova-lib that fails:
https://github.com/apache/cordova-lib/blob/master/cordova-lib/src/plugman/fetch.js#L229
pinfo.version equals 0.1 at this step for the test-framework plugin
latest.version equals 0.0.2-dev (using my local copy)
Is the logic for generating pinfo broken?
Should the following line have caught this and returned? (
https://github.com/apache/cordova-lib/blob/master/cordova-lib/src/plugman/fetch.js#L222
)
I will continue to debug. Figured I'd save some time if someone knows this
better than me though.