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 2.0.0 -> 2.0.1 breaks fivemat #893

Closed
limhoff-r7 opened this issue Jul 15, 2015 · 2 comments
Closed

cucumber 2.0.0 -> 2.0.1 breaks fivemat #893

limhoff-r7 opened this issue Jul 15, 2015 · 2 comments

Comments

@limhoff-r7
Copy link
Contributor

One of our builds saw the upgrade to cucumber 2.0.1 because we were pinning with ~> 2.0, assuming semantic versioning, but 2.0.1 gives this error:

undefined method `divmod' for #<Cucumber::Formatter::LegacyApi::Ast::Features:0x00000004a3eb30> (NoMethodError)
/home/travis/build/rapid7/metasploit-cache/vendor/bundle/ruby/2.1.0/gems/cucumber-2.0.1/lib/cucumber/formatter/duration.rb:8:in `format_duration'
/home/travis/build/rapid7/metasploit-cache/vendor/bundle/ruby/2.1.0/gems/cucumber-2.0.1/lib/cucumber/formatter/console.rb:87:in `print_stats'
/home/travis/build/rapid7/metasploit-cache/vendor/bundle/ruby/2.1.0/gems/fivemat-1.3.1/lib/fivemat/cucumber.rb:34:in `after_features'
/home/travis/build/rapid7/metasploit-cache/vendor/bundle/ruby/2.1.0/gems/cucumber-2.0.1/lib/cucumber/formatter/ignore_missing_messages.rb:10:in `method_missing'
/home/travis/build/rapid7/metasploit-cache/vendor/bundle/ruby/2.1.0/gems/cucumber-2.0.1/lib/cucumber/formatter/legacy_api/adapter.rb:111:in `after'
/home/travis/build/rapid7/metasploit-cache/vendor/bundle/ruby/2.1.0/gems/cucumber-2.0.1/lib/cucumber/formatter/legacy_api/adapter.rb:47:in `done'
/home/travis/build/rapid7/metasploit-cache/vendor/bundle/ruby/2.1.0/gems/cucumber-2.0.1/lib/cucumber/formatter/fanout.rb:16:in `block in method_missing'
/home/travis/build/rapid7/metasploit-cache/vendor/bundle/ruby/2.1.0/gems/cucumber-2.0.1/lib/cucumber/formatter/fanout.rb:15:in `each'
/home/travis/build/rapid7/metasploit-cache/vendor/bundle/ruby/2.1.0/gems/cucumber-2.0.1/lib/cucumber/formatter/fanout.rb:15:in `method_missing'
/home/travis/build/rapid7/metasploit-cache/vendor/bundle/ruby/2.1.0/gems/cucumber-core-1.2.0/lib/cucumber/core/test/runner.rb:35:in `done'
/home/travis/build/rapid7/metasploit-cache/vendor/bundle/ruby/2.1.0/gems/cucumber-core-1.2.0/lib/cucumber/core/filter.rb:61:in `done'
/home/travis/build/rapid7/metasploit-cache/vendor/bundle/ruby/2.1.0/gems/cucumber-core-1.2.0/lib/cucumber/core/filter.rb:61:in `done'
/home/travis/build/rapid7/metasploit-cache/vendor/bundle/ruby/2.1.0/gems/cucumber-core-1.2.0/lib/cucumber/core/filter.rb:61:in `done'
/home/travis/build/rapid7/metasploit-cache/vendor/bundle/ruby/2.1.0/gems/cucumber-core-1.2.0/lib/cucumber/core/filter.rb:61:in `done'
/home/travis/build/rapid7/metasploit-cache/vendor/bundle/ruby/2.1.0/gems/cucumber-core-1.2.0/lib/cucumber/core/filter.rb:61:in `done'
/home/travis/build/rapid7/metasploit-cache/vendor/bundle/ruby/2.1.0/gems/cucumber-core-1.2.0/lib/cucumber/core/filter.rb:61:in `done'
/home/travis/build/rapid7/metasploit-cache/vendor/bundle/ruby/2.1.0/gems/cucumber-2.0.1/lib/cucumber/filters/quit.rb:17:in `done'
/home/travis/build/rapid7/metasploit-cache/vendor/bundle/ruby/2.1.0/gems/cucumber-core-1.2.0/lib/cucumber/core/test/filters/locations_filter.rb:19:in `done'
/home/travis/build/rapid7/metasploit-cache/vendor/bundle/ruby/2.1.0/gems/cucumber-core-1.2.0/lib/cucumber/core/filter.rb:61:in `done'
/home/travis/build/rapid7/metasploit-cache/vendor/bundle/ruby/2.1.0/gems/cucumber-core-1.2.0/lib/cucumber/core/test/filters/tag_filter.rb:18:in `done'
/home/travis/build/rapid7/metasploit-cache/vendor/bundle/ruby/2.1.0/gems/cucumber-core-1.2.0/lib/cucumber/core/compiler.rb:23:in `done'
/home/travis/build/rapid7/metasploit-cache/vendor/bundle/ruby/2.1.0/gems/cucumber-core-1.2.0/lib/cucumber/core/gherkin/parser.rb:31:in `done'
/home/travis/build/rapid7/metasploit-cache/vendor/bundle/ruby/2.1.0/gems/cucumber-core-1.2.0/lib/cucumber/core.rb:29:in `parse'
/home/travis/build/rapid7/metasploit-cache/vendor/bundle/ruby/2.1.0/gems/cucumber-core-1.2.0/lib/cucumber/core.rb:18:in `compile'
/home/travis/build/rapid7/metasploit-cache/vendor/bundle/ruby/2.1.0/gems/cucumber-2.0.1/lib/cucumber/runtime.rb:70:in `run!'
/home/travis/build/rapid7/metasploit-cache/vendor/bundle/ruby/2.1.0/gems/cucumber-2.0.1/lib/cucumber/cli/main.rb:38:in `execute!'
/home/travis/build/rapid7/metasploit-cache/vendor/bundle/ruby/2.1.0/gems/cucumber-2.0.1/bin/cucumber:9:in `<top (required)>'
/home/travis/build/rapid7/metasploit-cache/vendor/bundle/ruby/2.1.0/bin/cucumber:23:in `load'
/home/travis/build/rapid7/metasploit-cache/vendor/bundle/ruby/2.1.0/bin/cucumber:23:in `<main>'

If I downgrade to cucumber 2.0.0 by changing the ~> 2.0 in the Gemfile to 2.0.0, it works.

Summary

gem broke works
cucumber 2.0.1 2.0.0
cucumber-core 1.2.0 1.1.3
fivemat 1.3.1 1.3.1
@brasmusson
Copy link
Contributor

It was not the intention to break anything, but unfortunately I forgot that the public methods of Cucumber::Formatter::Console must be considered a public API when I was rewriting formatters for the new formatter API. The old formatter API that fivemat uses will be removed, but not until v3.0 as the current plan stands, see #839.

@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