Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot load such file -- cucumber/ast/scenario (LoadError) with cucumber 2.0 beta 3 #744

Closed
anilreddy opened this issue Sep 17, 2014 · 8 comments

Comments

@anilreddy
Copy link

Hi,

I am getting the below error while executing watir-cucumber scripts using cucumber 2.0 beta 3 in windows.

cannot load such file -- cucumber/ast/scenario (LoadError)
Y:/Ruby200/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:116:in `require'
Y:/Ruby200/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:116:in `rescue in require'
Y:/Ruby200/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:122:in `require'
Y:/Ruby200/lib/ruby/gems/2.0.0/gems/pretty_face-0.9.1/lib/pretty_face/formatter/html.rb:5:in `<top (required)>'
Y:/Ruby200/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:64:in `require'
Y:/Ruby200/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:64:in `require'
Y:/Ruby200/lib/ruby/gems/2.0.0/gems/pretty_face-0.9.1/lib/pretty_face.rb:2:in `<top (required)>'
Y:/Ruby200/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:116:in `require'
Y:/Ruby200/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:116:in `rescue in require'
Y:/Ruby200/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:122:in `require'
Y:/XPRK177/Watir Scripts/BTP/cucumber/features/support/env.rb:7:in `<top (required)>'
Y:/Ruby200/lib/ruby/gems/2.0.0/gems/cucumber-2.0.0.beta.3/lib/cucumber/rb_support/rb_language.rb:94:in `load'
Y:/Ruby200/lib/ruby/gems/2.0.0/gems/cucumber-2.0.0.beta.3/lib/cucumber/rb_support/rb_language.rb:94:in `load_code_file'
Y:/Ruby200/lib/ruby/gems/2.0.0/gems/cucumber-2.0.0.beta.3/lib/cucumber/runtime/support_code.rb:172:in `load_file'
Y:/Ruby200/lib/ruby/gems/2.0.0/gems/cucumber-2.0.0.beta.3/lib/cucumber/runtime/support_code.rb:85:in `block in load_files!'
Y:/Ruby200/lib/ruby/gems/2.0.0/gems/cucumber-2.0.0.beta.3/lib/cucumber/runtime/support_code.rb:84:in `each'
Y:/Ruby200/lib/ruby/gems/2.0.0/gems/cucumber-2.0.0.beta.3/lib/cucumber/runtime/support_code.rb:84:in `load_files!'
Y:/Ruby200/lib/ruby/gems/2.0.0/gems/cucumber-2.0.0.beta.3/lib/cucumber/runtime.rb:298:in `load_step_definitions'
Y:/Ruby200/lib/ruby/gems/2.0.0/gems/cucumber-2.0.0.beta.3/lib/cucumber/runtime.rb:67:in `run!'
Y:/Ruby200/lib/ruby/gems/2.0.0/gems/cucumber-2.0.0.beta.3/lib/cucumber/cli/main.rb:38:in `execute!'
Y:/Ruby200/lib/ruby/gems/2.0.0/gems/cucumber-2.0.0.beta.3/bin/cucumber:9:in `<top (required)>'
Y:/Ruby200/bin/cucumber:23:in `load'
Y:/Ruby200/bin/cucumber:23:in `<main>'

let me know if you need more info

Thanks,
Anil

@os97673
Copy link
Member

os97673 commented Sep 17, 2014

It looks like a problem in pretty_face gem. Most likely it is not compatible with cucumber 2.0

@os97673 os97673 closed this as completed Sep 17, 2014
@mattwynne
Copy link
Member

Somebody please raise a ticket on their issue tracker and post a link here.

@mattwynne
Copy link
Member

You could try adding this patch to your support directory:

Cucumber::Ast::Scenario = Cucumber::Reports::Legacy::Ast::Scenario

@anilreddy
Copy link
Author

@mattwynne I have raised an issue in pretty_face and pointed a link to here.

@Githraine
Copy link

Does anyone know of an update on this issue?
Mattwynne, that solution just led to different errors.
Does anyone have a workaround? What version on Cucumber works with the latest pretty_face?

@mattwynne
Copy link
Member

Having looked at the PrettyFace code, it's going to need quite a few changes to support Cucumber 2.0.

@AvinashDuggirala
Copy link

Even I faced the same. I downgraded cucumber version and continued. Awaiting fix from Pretty Face

@lock
Copy link

lock bot commented Oct 25, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Oct 25, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants