Skip to content

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

@wu-lee

Description

@wu-lee

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"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions