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

cucumber 1.0.0 wrong number of arguments error when generating json format on jruby for windows #97

Closed
cayblood opened this issue Jun 29, 2011 · 2 comments

Comments

@cayblood
Copy link

On jruby 1.6.2 for Windows, cucumber 1.0.0, json 1.5.3 java, json_pure 1.5.1, I get the following error trying to generate either json or json_pretty formats:

wrong number of arguments (1 for 0) (ArgumentError)
c:/jruby-1.6.2/lib/ruby/gems/1.8/gems/cucumber-1.0.0/lib/cucumber/formatter/gherkin_formatter_adapter.rb:24:in `before_background'
org/jruby/RubyKernel.java:2063:in `send'
c:/jruby-1.6.2/lib/ruby/gems/1.8/gems/cucumber-1.0.0/bin/../lib/cucumber/ast/tree_walker.rb:174:in `send_to_all'
org/jruby/RubyArray.java:1602:in `each'
c:/jruby-1.6.2/lib/ruby/gems/1.8/gems/cucumber-1.0.0/bin/../lib/cucumber/ast/tree_walker.rb:172:in `send_to_all'
c:/jruby-1.6.2/lib/ruby/gems/1.8/gems/cucumber-1.0.0/bin/../lib/cucumber/ast/tree_walker.rb:163:in `broadcast'
c:/jruby-1.6.2/lib/ruby/gems/1.8/gems/cucumber-1.0.0/bin/../lib/cucumber/ast/tree_walker.rb:56:in `visit_background'
c:/jruby-1.6.2/lib/ruby/gems/1.8/gems/cucumber-1.0.0/bin/../lib/cucumber/ast/feature.rb:41:in `accept'
c:/jruby-1.6.2/lib/ruby/gems/1.8/gems/cucumber-1.0.0/bin/../lib/cucumber/ast/tree_walker.rb:20:in `visit_feature'
c:/jruby-1.6.2/lib/ruby/gems/1.8/gems/cucumber-1.0.0/bin/../lib/cucumber/ast/tree_walker.rb:164:in `broadcast'
c:/jruby-1.6.2/lib/ruby/gems/1.8/gems/cucumber-1.0.0/bin/../lib/cucumber/ast/tree_walker.rb:19:in `visit_feature'
c:/jruby-1.6.2/lib/ruby/gems/1.8/gems/cucumber-1.0.0/bin/../lib/cucumber/ast/features.rb:29:in `accept'
org/jruby/RubyArray.java:1602:in `each'
c:/jruby-1.6.2/lib/ruby/gems/1.8/gems/cucumber-1.0.0/bin/../lib/cucumber/ast/features.rb:17:in `each'
c:/jruby-1.6.2/lib/ruby/gems/1.8/gems/cucumber-1.0.0/bin/../lib/cucumber/ast/features.rb:28:in `accept'
c:/jruby-1.6.2/lib/ruby/gems/1.8/gems/cucumber-1.0.0/bin/../lib/cucumber/ast/tree_walker.rb:14:in `visit_features'
c:/jruby-1.6.2/lib/ruby/gems/1.8/gems/cucumber-1.0.0/bin/../lib/cucumber/ast/tree_walker.rb:164:in `broadcast'
c:/jruby-1.6.2/lib/ruby/gems/1.8/gems/cucumber-1.0.0/bin/../lib/cucumber/ast/tree_walker.rb:13:in `visit_features'
c:/jruby-1.6.2/lib/ruby/gems/1.8/gems/cucumber-1.0.0/bin/../lib/cucumber/runtime.rb:45:in `run!'
c:/jruby-1.6.2/lib/ruby/gems/1.8/gems/cucumber-1.0.0/bin/../lib/cucumber/cli/main.rb:43:in `execute!'
c:/jruby-1.6.2/lib/ruby/gems/1.8/gems/cucumber-1.0.0/bin/../lib/cucumber/cli/main.rb:20:in `execute'
c:/jruby-1.6.2/lib/ruby/gems/1.8/gems/cucumber-1.0.0/bin/cucumber:14:in `(root)'
org/jruby/RubyKernel.java:1063:in `load'
c:\jruby-1.6.2\lib\ruby\gems\1.8\bin\cucumber:19:in `(root)'
@cayblood
Copy link
Author

Been testing this with different cucumber versions. Apparently it's been around since 0.10.5.

@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

2 participants