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

Error on require: uninitialized constant ActiveSupport::XmlMini::IsolatedExecutionState (NameError) #297

Open
wu-lee opened this issue Jan 21, 2022 · 1 comment · May be fixed by #298
Open

Comments

@wu-lee
Copy link

wu-lee commented Jan 21, 2022

Something's up with ActiveSupport, which is breaking Carmen.

To replicate: run this minimal script

require 'carmen.rb'

And be greeted with an error like this:

.gems/ruby/2.7.0/gems/activesupport-7.0.1/lib/active_support/xml_mini.rb:184:in `current_thread_backend': uninitialized constant ActiveSupport::XmlMini::IsolatedExecutionState (NameError)

Searching for the error message finds this:

rails/rails#43851

There's a fix mentioned, or possibly a workaround, which entails including some files:

require "active_support"
require "active_support/testing/time_helpers"
@benhutton
Copy link

I believe that the fix needs to be made in this gem. Before this line there should be a require 'active_support'.

Here is the relevant context: rails/rails#43852 (comment). Apparently (and this is news to me too) all usage of AS is supposed to start with require 'active_support'... and then you require the specific libraries you need.

@benhutton benhutton linked a pull request Jan 31, 2022 that will close this issue
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

Successfully merging a pull request may close this issue.

2 participants