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

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

Closed
olleolleolle opened this issue May 30, 2022 · 2 comments

Comments

@olleolleolle
Copy link
Contributor

olleolleolle commented May 30, 2022

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

Reported that issue in its project: socketry/rspec-memory#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.
olleolleolle added a commit to olleolleolle/rspec-memory that referenced this issue May 30, 2022
@ioquatix
Copy link
Member

ioquatix commented Feb 1, 2024

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.

@ioquatix ioquatix closed this as not planned Won't fix, can't repro, duplicate, stale Feb 1, 2024
@olleolleolle
Copy link
Contributor Author

Thanks for keeping the Issue tracker tidy!

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

2 participants