0

Just wondering if anyone has the above combination working on win 7 64 bit. I'm having issues running cucumber as I'm having problems with gherkin. I see on the github there are some issues with it on 64 bit machines I just couldn't get the fix to work from here

WARNING: cannot load such file -- 2.1/gherkin_lexer_en Couldn't load 2.1/gherkin_lexer_en

Has anyone got this going in Windows 7 64 bit.

ruby 2.1.5p273 (2014-11-13 revision 48405) [i386-mingw32 Rails 4.2.1

4

1 回答 1

0

正如在这个问题中回答的那样,这是解决方法:

捆绑安装后,删除小黄瓜 gem:

gem uninstall gherkin --force

重新安装 gem(可能需要一段时间):

gem install gherkin --platform ruby -v 2.12.2

转到 ruby​​ 安装目录中 gem 的文件夹。像这样的东西:

{ruby_dir}\lib\ruby\gems\2.1.0\gems\gherkin-2.12.2\lib\gherkin

并将第 7 行替换为lib/gherkin/c_lexer.rb

prefix = ''

此解决方法在https://github.com/cucumber/gherkin/issues/273中指定,并由 mscharley 在 2014 年 1 月 18 日发表评论。

在 Windows 操作系统上安装每个捆绑包后,我必须遵循这些步骤。在 Windows 7 和 Windows 10 上测试。

于 2016-03-11T22:11:21.430 回答