gherkin error in Ruby 2.0

337 views
Skip to first unread message

Rahul Sharma

unread,
May 8, 2013, 7:21:41 AM5/8/13
to cu...@googlegroups.com
Hi,

Was trying to upgrade to ruby 2.0 and got this error from gherkin:

WARNING: cannot load such file -- 2.0/gherkin_lexer_en
Couldn't load 2.0/gherkin_lexer_en
The $LOAD_PATH was:
lib

Some posts suggest that gherkin still doesn't support ruby 2.0. I am using gherkin 2.12.0.

Any workaround for the time being?

aslak hellesoy

unread,
May 8, 2013, 7:55:22 AM5/8/13
to Cucumber Users
On Wed, May 8, 2013 at 6:21 AM, Rahul Sharma <rahulsh...@gmail.com> wrote:
Hi,

Was trying to upgrade to ruby 2.0 and got this error from gherkin:

WARNING: cannot load such file -- 2.0/gherkin_lexer_en
Couldn't load 2.0/gherkin_lexer_en
The $LOAD_PATH was:
lib

Some posts suggest that gherkin still doesn't support ruby 2.0.

It does, except for Windows
 
I am using gherkin 2.12.0.


 
Any workaround for the time being?

Not until that issue is fixed.
 

--
-- Rules --
 
1) Please prefix the subject with [Ruby], [JVM] or [JS].
2) Please use interleaved answers http://en.wikipedia.org/wiki/Posting_style#Interleaved_style
3) If you have a question, don't reply to an existing message. Start a new topic instead.
 
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 https://groups.google.com/d/forum/cukes?hl=en
---
You received this message because you are subscribed to the Google Groups "Cukes" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cukes+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Erich Kaderka

unread,
May 8, 2013, 7:45:01 AM5/8/13
to cu...@googlegroups.com
Hi Rahul,

I am using Ruby 2.0 and gherkin-2.11.6, I have never seen your error.


aslak hellesoy

unread,
May 8, 2013, 9:19:29 AM5/8/13
to cu...@googlegroups.com


On Wednesday, May 8, 2013, Erich Kaderka wrote:
Hi Rahul,

I am using Ruby 2.0 and gherkin-2.11.6, I have never seen your error.

What OS? 

Erich Kaderka

unread,
May 8, 2013, 9:31:35 AM5/8/13
to cu...@googlegroups.com
On 8 May 2013, at 14:19, aslak hellesoy wrote:



On Wednesday, May 8, 2013, Erich Kaderka wrote:
Hi Rahul,

I am using Ruby 2.0 and gherkin-2.11.6, I have never seen your error.

What OS? 

Mac OS X Lion 10.7.5

aslak hellesoy

unread,
May 8, 2013, 10:02:39 AM5/8/13
to cu...@googlegroups.com


On Wednesday, May 8, 2013, Erich Kaderka wrote:

On 8 May 2013, at 14:19, aslak hellesoy wrote:



On Wednesday, May 8, 2013, Erich Kaderka wrote:
Hi Rahul,

I am using Ruby 2.0 and gherkin-2.11.6, I have never seen your error.

What OS? 

Mac OS X Lion 10.7.5

Did you miss my reply about Windows? 

Rahul Sharma

unread,
May 8, 2013, 10:13:42 AM5/8/13
to cu...@googlegroups.com


On Wednesday, 8 May 2013 12:55:22 UTC+1, Aslak Hellesøy wrote:



On Wed, May 8, 2013 at 6:21 AM, Rahul Sharma <rahulsh...@gmail.com> wrote:
Hi,

Was trying to upgrade to ruby 2.0 and got this error from gherkin:

WARNING: cannot load such file -- 2.0/gherkin_lexer_en
Couldn't load 2.0/gherkin_lexer_en
The $LOAD_PATH was:
lib

Some posts suggest that gherkin still doesn't support ruby 2.0.

It does, except for Windows
 
I am using gherkin 2.12.0.


 
Any workaround for the time being?

Not until that issue is fixed.

Thanks Aslak. I will stick to 1.9.3 for now. 

Irish

unread,
Oct 30, 2014, 10:08:40 AM10/30/14
to cu...@googlegroups.com


среда, 8 мая 2013 г., 14:21:41 UTC+3 пользователь Rahul Sharma написал:

I have the same problem now.  this problem still not fixed and only 1.9 ruby can help me ?

aslak hellesoy

unread,
Oct 30, 2014, 10:40:26 AM10/30/14
to Cucumber Users
Gherkin 2.12.0 should work on both Ruby 1.9 and 2.0 as long as you're using the 32bit Ruby and not the 64bit ruby.

If you're using Ruby 2.1 or any 64 bit ruby you should still be able to install gherkin if you first install DevKit so you can compile the C code in the gem yourself, using `gem install gherkin --platform ruby`

Unfortunately I don't have a Windows machine, so someone else would have to confirm that what I'm saying here is correct.

Aslak 

--
Posting rules: http://cukes.info/posting-rules.html

---
You received this message because you are subscribed to the Google Groups "Cukes" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cukes+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Irish

unread,
Oct 30, 2014, 11:22:57 AM10/30/14
to cu...@googlegroups.com
unfortunaly I have win8 and

C:\Ruby193>ruby --version
ruby 2.1.3p242 (2014-09-19 revision 47630) [x64-mingw32]

is installed
so, i need downgrade ruby or linux ? :)



cukes google group

четверг, 30 октября 2014 г., 16:40:26 UTC+2 пользователь Aslak Hellesøy написал:

aslak hellesoy

unread,
Oct 30, 2014, 11:25:59 AM10/30/14
to Cucumber Users
On Thu, Oct 30, 2014 at 3:22 PM, Irish <irch...@gmail.com> wrote:
unfortunaly I have win8 and

C:\Ruby193>ruby --version
ruby 2.1.3p242 (2014-09-19 revision 47630) [x64-mingw32]

is installed
so, i need downgrade ruby or linux ? :)

You don't have Linux, you have Windows.

You have 2 options.

a)
Uninstall ruby and install ruby 2.0.0 32bit

b)
Install DevKit
ruby install gherkin --platform ruby

Aslak
Reply all
Reply to author
Forward
0 new messages