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
(originally reported here, but moving it here, as it affects not only solidus_auth_devise, but also solidus_braintree.
I'm experiencing the following error in a brand new Solidus Sandbox: Currently (Solidus main as of solidusio/solidus@78d20c4, solidus_auth_devise version 2.5.8) the sandbox can't find the backend sessions controller. This is the error when you try:
Started GET "/admin/" for 127.0.0.1 at 2023-06-12 15:37:29 +0200
ActiveRecord::SchemaMigration Pluck (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
Processing by Spree::Admin::RootController#index as HTML
Redirected to http://localhost:3000/admin/login
Completed 302 Found in 340ms (ActiveRecord: 0.8ms | Allocations: 530212)
Started GET "/admin/login" for 127.0.0.1 at 2023-06-12 15:37:29 +0200
ActionController::RoutingError (uninitialized constant Spree::Admin::UserSessionsController
Object.const_get(camel_cased_word)
^^^^^^^^^^
Did you mean? UserPasswordsController
raise MissingController.new(error.message, error.name)
^^^^^):
bin/rails zeitwerk:check
results in
Hold on, I am eager loading the application.
WARNING: The following directories will only be checked if you configure
them to be eager loaded:
/home/anselm/.gem/ruby/3.1.4/gems/solidus_paypal_commerce_platform-1.0.1/app/decorators/models
/home/anselm/.gem/ruby/3.1.4/gems/solidus_auth_devise-2.5.8/lib/decorators/backend/controllers
/home/anselm/.gem/ruby/3.1.4/gems/solidus_auth_devise-2.5.8/lib/controllers/backend/spree
You may verify them manually, or add them to config.eager_load_paths
in config/application.rb and run zeitwerk:check again.
Otherwise, all is good!
The simplest check for this is just running the rails console and typing the name of the controller we need. If all is good, the REPL should return the constant, if something's off, we get an undefined constant error:
This behavior occurs not just with solidus_auth_devise, but with any gem that has the backend controllers in lib. One example is solidus_braintree, with its SolidusBraintree::ConfigurationsController:
Thank you for reporting this issue. I made a change to the autoload path of solidus_support last week. Probably this is the cause of the issue. Let me try to reproduce it locally.
(originally reported here, but moving it here, as it affects not only
solidus_auth_devise
, but alsosolidus_braintree
.I'm experiencing the following error in a brand new Solidus Sandbox: Currently (Solidus
main
as of solidusio/solidus@78d20c4,solidus_auth_devise
version 2.5.8) the sandbox can't find the backend sessions controller. This is the error when you try:results in
Solidus Version:
Solidus
main
as of solidusio/solidus@78d20c4To Reproduce
The simplest check for this is just running the rails console and typing the name of the controller we need. If all is good, the REPL should return the constant, if something's off, we get an undefined constant error:
This behavior occurs not just with
solidus_auth_devise
, but with any gem that has the backend controllers inlib
. One example issolidus_braintree
, with itsSolidusBraintree::ConfigurationsController
:Current behavior
Expected behavior
Desktop (please complete the following information):
Additional context
This stopped working with the following commit: 17e8718
The text was updated successfully, but these errors were encountered: