I did discover this problem after I released Cucumber 0.8.5, so I made
a fix to gherkin:
http://github.com/aslakhellesoy/gherkin/commit/27f0b28625adb2b4605733b207148cf0a369807b
And released gherkin 2.1.4
I'm surprised this is happening - the Java Parser class in gherkin
2.1.4 *should* have a 3-arg constructor now. -Unless something went
wrong when everything got built and packaged.
I apologise for this - it's quite tricky to keep both java and ruby
implementations in synch, and making sure cucumber and gherkin are in
synch too. I'll take a closer look at this.
Aslak
> --
> You received this message because you are subscribed to the Google Groups "Cukes" group.
> To post to this group, send email to cu...@googlegroups.com.
> To unsubscribe from this group, send email to cukes+un...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/cukes?hl=en.
>
>
The culprit was that the cuke4duke jar had a maven dependency on an
older version of gherkin (1.0.2).
This is a little tricky, because gherkin is released both as a jar (in
a maven repo) and as a jruby gem (with the jar inside).
This means that when a new gherkin and cucumber release is made, your
project will grab these (as gems), but since you're using cuke4duke
you'll still get the old gherkin on the classpath, and that ends up on
your classpath before the newer jar in the gem.
I don't have a short term solution for this except for making releases
of cuke4duke right after a gherkin release.
This will get better in the future when we get a pure java cucumber
(no more jruby, gems and all that). This is going to take some months.
Let us know if cuke4duke 0.3.2 works better for you!
Aslak