Skip to content
This repository has been archived by the owner on Nov 30, 2024. It is now read-only.

Conversation

JonRowe
Copy link
Member

@JonRowe JonRowe commented Jul 9, 2013

It looks like new DeprecationFormatter doesn't implement start method, so the call is routed to the Kernel method, that is injected by ruby-debug and has a different signature.

module Kernel
  def start(options={}, &block)
  ......
  end
end


class BaseFormatter
   def start(example_count)
   ....
   end
end

Error Message:

TypeError: can't convert Fixnum into Hash
     merge at org/jruby/RubyHash.java:1756
     start at /Users/aportnov/.rvm/gems/jruby-1.7.4@hockey-core/gems/ruby-debug-base-0.10.4-java/lib/ruby-debug-base.rb:205
  __send__ at org/jruby/RubyBasicObject.java:1709
      send at org/jruby/RubyKernel.java:2213
    notify at /Users/aportnov/.rvm/gems/jruby-1.7.4@hockey-core/gems/rspec-core-2.14.0/lib/rspec/core/reporter.rb:127
      each at org/jruby/RubyArray.java:1617
    notify at /Users/aportnov/.rvm/gems/jruby-1.7.4@hockey-core/gems/rspec-core-2.14.0/lib/rspec/core/reporter.rb:126
     start at /Users/aportnov/.rvm/gems/jruby-1.7.4@hockey-core/gems/rspec-core-2.14.0/lib/rspec/core/reporter.rb:66
    report at /Users/aportnov/.rvm/gems/jruby-1.7.4@hockey-core/gems/rspec-core-2.14.0/lib/rspec/core/reporter.rb:56
       run at /Users/aportnov/.rvm/gems/jruby-1.7.4@hockey-core/gems/rspec-core-2.14.0/lib/rspec/core/command_line.rb:25
       run at /Users/aportnov/.rvm/gems/jruby-1.7.4@hockey-core/gems/rspec-core-2.14.0/lib/rspec/core/runner.rb:80
   autorun at /Users/aportnov/.rvm/gems/jruby-1.7.4@hockey-core/gems/rspec-core-2.14.0/lib/rspec/core/runner.rb:17

@JonRowe
Copy link
Member

JonRowe commented Jul 9, 2013

FYI. This is JRuby specific. It doesn't happen with the debugger gem on MRI Ruby.

@JonRowe JonRowe closed this Jul 9, 2013
@JonRowe
Copy link
Member

JonRowe commented Jul 9, 2013

See #967 due to me messing up the commit range

myronmarston added a commit that referenced this pull request Jul 9, 2013
…r_on_jruby

Properly base #966 off 2-14-maintenance
myronmarston added a commit that referenced this pull request Jul 9, 2013
…r_on_jruby

Properly base #966 off 2-14-maintenance
Conflicts:
	Changelog.md
@myronmarston
Copy link
Member

2.14.1 has been released with a fix for this.

yujinakayama pushed a commit to yujinakayama/rspec-monorepo that referenced this pull request Oct 6, 2021
…or_deprecation_formatter_on_jruby

Properly base rspec/rspec-core#966 off 2-14-maintenance
Conflicts:
	Changelog.md

---
This commit was imported from rspec/rspec-core@c3f78ce.
yujinakayama pushed a commit to yujinakayama/rspec-monorepo that referenced this pull request Oct 6, 2021
…or_deprecation_formatter_on_jruby

Properly base rspec/rspec-core#966 off 2-14-maintenance

---
This commit was imported from rspec/rspec-core@8ba91ce.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants