Closed
Description
Hi,
In our project, we are not directly using activesupport
, but grape
does. This is fetching latest version of activesupport
, which is currently 7.0.2.
Problem
Starting up the application is raising the following exception:
NameError:
uninitialized constant ActiveSupport::XmlMini::IsolatedExecutionState
# /usr/local/bundle/gems/activesupport-7.0.2/lib/active_support/xml_mini.rb:184:in `current_thread_backend'
# /usr/local/bundle/gems/activesupport-7.0.2/lib/active_support/xml_mini.rb:103:in `backend='
# /usr/local/bundle/gems/activesupport-7.0.2/lib/active_support/xml_mini.rb:201:in `<module:ActiveSupport>'
# /usr/local/bundle/gems/activesupport-7.0.2/lib/active_support/xml_mini.rb:11:in `<top (required)>'
# /usr/local/bundle/gems/activesupport-7.0.2/lib/active_support/core_ext/array/conversions.rb:3:in `require'
# /usr/local/bundle/gems/activesupport-7.0.2/lib/active_support/core_ext/array/conversions.rb:3:in `<top (required)>'
...
Gemfile.lock
specs:
activesupport (7.0.2)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (>= 1.6, < 2)
minitest (>= 5.1)
tzinfo (~> 2.0)
zeitwerk (~> 2.3)
# ...
grape (1.6.2)
activesupport
builder
dry-types (>= 1.1)
mustermann-grape (~> 1.0.0)
rack (>= 1.3.0)
rack-accept
...
Potential fix
Shouldn't constant ActiveSupport::XmlMini::IsolatedExecutionState
be ActiveSupport::IsolatedExecutionState
as found in xml_mini.rb
?
Temporary solution on our place
We have forced our Gemfile to contain active_support
fixed to working version 6.1
. This is a workaround, as we are adding a dependency we are not using in our own codebase, but as a subdependency.