Skip to content

Broken with activesupport 7: uninitialized constant ActiveSupport::XmlMini::IsolatedExecutionState #141

@DannyBen

Description

@DannyBen

When activesupport 7 is installed, the gem breaks with this error:

Error

/home/vagrant/.rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/activesupport-7.0.0
/lib/active_support/xml_mini.rb:184:in `current_thread_backend': uninitialized constant ActiveSupport::XmlMini::IsolatedExecutionState (NameError)
        from /home/vagrant/.rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/activesupport-7.0.0/lib/active_support/xml_mini.rb:103:in `backend='
        from /home/vagrant/.rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/activesupport-7.0.0/lib/active_support/xml_mini.rb:201:in `<module:ActiveSupport>'
        from /home/vagrant/.rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/activesupport-7.0.0/lib/active_support/xml_mini.rb:11:in `<top (required)>'
        # ...

Reproduction

require 'bundler/inline'

gemfile do
  source "https://rubygems.org"
  gem 'whois-parser'
  gem 'activesupport', '>= 7'   # FAIL
  # gem 'activesupport', '< 7'      # PASS
end

c = Whois::Client.new
p c.lookup("google.com")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions