cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steven Gill <stevengil...@gmail.com>
Subject Re: createmobilespec issue [tools release]
Date Fri, 27 Feb 2015 20:19:09 GMT
Looks like I had a cordova-test-frameworks directory (no idea why) in my
cordova directory. It was coming up during the searchpath search and its
version was set to 0.1.  Removed it. Problem solved

On Fri, Feb 27, 2015 at 11:35 AM, Steven Gill <stevengill97@gmail.com>
wrote:

> 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.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message