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/formatter/hook_query_visitor' getting for reportal portal #90

Open
radhakrishnanakireddy opened this issue Jul 3, 2020 · 4 comments

Comments

@radhakrishnanakireddy
Copy link

radhakrishnanakireddy commented Jul 3, 2020

Hi,
I am facing 'cannot load such file -- cucumber/formatter/hook_query_visitor' error while trying to use agent-ruby.

cannot load such file -- cucumber/formatter/hook_query_visitor
Error creating formatter: ReportPortal::Cucumber::Formatter (LoadError)
C:/Ruby26/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in require' C:/Ruby26/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in require'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/reportportal-0.7/lib/report_portal/cucumber/report.rb:20:in <top (required)>' C:/Ruby26/lib/ruby/gems/2.6.0/gems/reportportal-0.7/lib/report_portal/cucumber/formatter.rb:21:in require_relative'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/reportportal-0.7/lib/report_portal/cucumber/formatter.rb:21:in <top (required)>' C:/Ruby26/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in require'
C:/Ruby26/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in require' C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-4.1.0/lib/cucumber/constantize.rb:19:in rescue in constantize'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-4.1.0/lib/cucumber/constantize.rb:8:in constantize' C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-4.1.0/lib/cucumber/configuration.rb:215:in formatter_class'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-4.1.0/lib/cucumber/configuration.rb:201:in block in formatter_factories' C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-4.1.0/lib/cucumber/configuration.rb:199:in map'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-4.1.0/lib/cucumber/configuration.rb:199:in formatter_factories' C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-4.1.0/lib/cucumber/runtime.rb:187:in formatters'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-4.1.0/lib/cucumber/runtime.rb:172:in report' C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-4.1.0/lib/cucumber/runtime.rb:76:in run!'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-4.1.0/lib/cucumber/cli/main.rb:29:in execute!' C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-4.1.0/bin/cucumber:9:in <top (required)>'
C:/Ruby26/bin/cucumber:23:in load' C:/Ruby26/bin/cucumber:23:in

'

environment details
ruby -2.6
latest reprotportal with docker.

Please help me with it to resolve

Thank you

@abotalov
Copy link
Member

abotalov commented Jul 3, 2020

Yeah, the gem wasn't updated for Cucumber 4. But I don't have time to support agent-ruby anymore.

@pmthexton
Copy link

@radhakrishnanakireddy I've added support for cucumber > 4 in to a branch at https://github.com/pmthexton/agent-ruby/tree/cucumber4

I'm not convinced this is the cleanest or most correct way of doing so, but if your focus on it simply "working", then it should be good enough to see you through.

Note: I've only done this for cucumber, I've not paid any attention to parallel cucumber or rspec as I didn't need to worry about them for my use case.

@sravan666
Copy link

Is reportportal support cucumber 6.0.0?
We are using the ruby with BDD.

I'm getting error like below
cannot load such file -- http
Error creating formatter: ReportPortal::Cucumber::Formatter (LoadError)

@dvernikos
Copy link

@pmthexton I have inserted gem 'reportportal', git: 'https://github.com/pmthexton/agent-ruby.git', branch: 'cucumber4' in my Gemfile to use your fix for Cucumber > 4, but I still get the same error mentioned here. Care to shed some light here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants