You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a few apps using Camaleon CMS, which is a Rails engine. When I tried to upgrade from Rails 5.2.3 to 6.0.0rc1, eager loading broke and the app won't boot with it turned on.
I realize this could be seen as an issue with Camaleon, but there appears to be a regression from 2.1.4 to 2.1.5.
I also was under the impression that setting the autoloader to :classic should preserve pre-6.0 behavior, but that is not the case as things that load fine in 5.2 do not load correctly in classic mode.
Symptoms:
not working with Zeitwerk 2.1.5
not working with config.autoloader = :classic
working with Zeitwerk 2.1.4 (non-classic mode only)
comment out the zeitwerk entry in the Gemfile and bundle update zeitwerk, or uncomment config.autoloader = :classic in application.rb, and the app will no longer boot.
The text was updated successfully, but these errors were encountered:
The engine does not comply with the requirements of :zeitwerk mode. As it is, you have to run your application in :classic mode. Have explained it in this issue.
Regarding :classic mode, the error you get is not related to autoloading, I have explained it in this other issue.
I have a few apps using Camaleon CMS, which is a Rails engine. When I tried to upgrade from Rails 5.2.3 to 6.0.0rc1, eager loading broke and the app won't boot with it turned on.
I realize this could be seen as an issue with Camaleon, but there appears to be a regression from 2.1.4 to 2.1.5.
I also was under the impression that setting the autoloader to
:classic
should preserve pre-6.0 behavior, but that is not the case as things that load fine in 5.2 do not load correctly in classic mode.Symptoms:
config.autoloader = :classic
Repro here: https://github.com/brian-kephart/zeitwerk_issue. Steps:
git clone https://github.com/brian-kephart/zeitwerk_issue.git
bundle
rails s
(app should boot)bundle update zeitwerk
, or uncommentconfig.autoloader = :classic
in application.rb, and the app will no longer boot.The text was updated successfully, but these errors were encountered: