socketry / falcon

A high-performance web server for Ruby, supporting HTTP/1, HTTP/2 and TLS.
https://socketry.github.io/falcon/
MIT License
2.62k stars 79 forks source link

JRuby test helper fails with NoMethodError: undefined method `memsize_of' for ObjectSpace:Module #175

Closed olleolleolle closed 8 months ago

olleolleolle commented 2 years ago

The JRuby test matrix element fails with this message: sort of before it even got started.

Reported that issue in its project: https://github.com/socketry/rspec-memory/issues/8

An error occurred while loading spec_helper.
Failure/Error: require "async/rspec"

NoMethodError:
  undefined method `memsize_of' for ObjectSpace:Module
# ./vendor/bundle/jruby/2.6.0/gems/rspec-memory-1.0.3/lib/rspec/memory/trace.rb:26:in `block in Memory'
# ./vendor/bundle/jruby/2.6.0/gems/rspec-memory-1.0.3/lib/rspec/memory/trace.rb:25:in `<module:Memory>'
# ./vendor/bundle/jruby/2.6.0/gems/rspec-memory-1.0.3/lib/rspec/memory/trace.rb:24:in `<module:RSpec>'
# ./vendor/bundle/jruby/2.6.0/gems/rspec-memory-1.0.3/lib/rspec/memory/trace.rb:23:in `<main>'
# ./vendor/bundle/jruby/2.6.0/gems/rspec-memory-1.0.3/lib/rspec/memory/matchers/limit_allocations.rb:22:in `<main>'
# ./vendor/bundle/jruby/2.6.0/gems/rspec-memory-1.0.3/lib/rspec/memory.rb:21:in `<main>'
# ./vendor/bundle/jruby/2.6.0/gems/async-rspec-1.16.1/lib/async/rspec/memory.rb:21:in `<main>'
# ./vendor/bundle/jruby/2.6.0/gems/async-rspec-1.16.1/lib/async/rspec.rb:23:in `<main>'
# ./spec/spec_helper.rb:6:in `<main>'
No examples found.
No examples found.
ioquatix commented 8 months ago

The main issue right now is the io-event gem does not support JRuby. I hope we can address that soon. I don't believe we are using rspec-memory in the falcon test suite any more.

olleolleolle commented 8 months ago

Thanks for keeping the Issue tracker tidy!