Created
July 14, 2016 00:56
-
-
Save ron623/46a5b3f856ecdf66b59e184d00ddc9e2 to your computer and use it in GitHub Desktop.
cucumber Couldn't load 2.1 gherkin_lexer_en
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cucumber Couldn't load 2.1/gherkin_lexer_en | |
This workaround has worked for me. After bundle install, remove the gherkin gem: | |
gem uninstall gherkin --force | |
Reinstall the gem (it may take a while): | |
gem install gherkin --platform ruby -v 2.12.2 | |
Go to the folder of the gem inside your ruby installation directory. Something like this: | |
{ruby_dir}\lib\ruby\gems\2.1.0\gems\gherkin-2.12.2\lib\gherkin | |
And replace the lib/gherkin/c_lexer.rb line 7 with: | |
prefix = '' | |
This workaround is specified in https://github.com/cucumber/gherkin/issues/273 with the comment by mscharley on Jan 18, 2014. | |
I have to follow these steps after every bundle install on Windows OS. Tested with Windows 7 and Windows 10. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment