Spock & Groovy version.

141 views
Skip to first unread message

JohnMc

unread,
Oct 21, 2010, 7:49:06 PM10/21/10
to Spock Framework - User
Anyone have any idea why I get this error, when running from within
STS:

Caught: org.spockframework.util.IncompatibleVersionsError: The Spock
compiler plugin could not run because Spock 0.4.0-groovy-1.7 is not
compatible with Groovy 0.0.0. For more information, see
http://versioninfo.spockframework.org
Spock location: file://C:/My%20Documents/Downloads/spock-core-0.4-groovy-1.7.jar
Groovy location: file:/C:/springsource/sts-2.3.2.RELEASE/plugins/
org.codehaus.groovy_1.7.3.20100809-1500-e35/lib/groovy-1.7.3.jar

Looks like the error is saying it thinks I'm using groovy verion 0.0.0
but then it says I'm using 1.7.3? Weird.
BTW I checked http://versioninfo.spockframework.org and my versions
seem OK.

Peter Niederwieser

unread,
Oct 21, 2010, 10:17:09 PM10/21/10
to spockfr...@googlegroups.com
Hi John,

could you run the following script in STS and tell me what the output is? (You might have to remove the spock-core Jar first to get around the IncompatibleVersionsError.)

println org.codehaus.groovy.runtime.InvokerHelper.version

Cheers,
Peter

--
You received this message because you are subscribed to the Google Groups "Spock Framework - User" group.
To post to this group, send email to spockfr...@googlegroups.com.
To unsubscribe from this group, send email to spockframewor...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/spockframework?hl=en.


----------------------------------------------------------------
Peter Niederwieser
Twitter: pniederw









JohnMc

unread,
Oct 21, 2010, 11:15:24 PM10/21/10
to Spock Framework - User
The output is:

##ImplementationVersion##


On Oct 22, 1:17 pm, Peter Niederwieser <pnied...@gmail.com> wrote:
> Hi John,
>
> could you run the following script in STS and tell me what the output is? (You might have to remove the spock-core Jar first to get around the IncompatibleVersionsError.)
>
> println org.codehaus.groovy.runtime.InvokerHelper.version
>
> Cheers,
> Peter
>
> On 21.10.2010, at 18:49, JohnMc wrote:
>
>
>
> > Anyone have any idea why I get this error, when running from within
> > STS:
>
> > Caught: org.spockframework.util.IncompatibleVersionsError: The Spock
> > compiler plugin could not run because Spock 0.4.0-groovy-1.7 is not
> > compatible with Groovy 0.0.0. For more information, see
> >http://versioninfo.spockframework.org
> > Spock location: file://C:/My%20Documents/Downloads/spock-core-0.4-groovy-1.7.jar
> > Groovy location: file:/C:/springsource/sts-2.3.2.RELEASE/plugins/
> > org.codehaus.groovy_1.7.3.20100809-1500-e35/lib/groovy-1.7.3.jar
>
> > Looks like the error is saying it thinks I'm using groovy verion 0.0.0
> > but then it says I'm using 1.7.3? Weird.
> > BTW I checkedhttp://versioninfo.spockframework.organd my versions
> > seem OK.
>
> > --
> > You received this message because you are subscribed to the Google Groups "Spock Framework - User" group.
> > To post to this group, send email to spockfr...@googlegroups.com.
> > To unsubscribe from this group, send email to spockframewor...@googlegroups.com.
> > For more options, visit this group athttp://groups.google.com/group/spockframework?hl=en.
>
> ----------------------------------------------------------------
> Peter Niederwieser
> Creator,http://spockframework.org
> Committer,http://groovy.codehaus.org
> Blogger,http://pniederw.wordpress.com
> Chief Engineer,http://smarter-ecommerce.com
> pnied...@gmail.com
> Twitter: pniederw

Peter Niederwieser

unread,
Oct 21, 2010, 11:51:36 PM10/21/10
to spockfr...@googlegroups.com
Ouch. This looks like a problem with the Groovy Jar bundled with STS. Usually it prints something like "1.7.5", but apparently they packaged an unprocessed groovy-release-info.properties.
I'll bring this up on the STS list. Meanwhile, I'll change the Spock version check to work around this. Should come to a 0.5-SNAPSHOT near you in a day or two.

Cheers,
Peter

For more options, visit this group at http://groups.google.com/group/spockframework?hl=en.

JohnMc

unread,
Oct 22, 2010, 12:22:21 AM10/22/10
to Spock Framework - User
Thanks Peter
> >>> BTW I checkedhttp://versioninfo.spockframework.organdmy versions

Peter Niederwieser

unread,
Oct 24, 2010, 12:41:01 AM10/24/10
to Spock Framework - User
Latest snapshot release handles this situation gracefully. Still
believe this is an STS bug.

Cheers,
Peter

Peter Niederwieser

unread,
Oct 24, 2010, 1:51:09 AM10/24/10
to Spock Framework - User
Reply all
Reply to author
Forward
0 new messages