You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by Steven Gill <st...@gmail.com> on 2015/02/27 20:35:01 UTC

createmobilespec issue [tools release]

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.

Re: createmobilespec issue [tools release]

Posted by Steven Gill <st...@gmail.com>.
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 <st...@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.
>