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
When using Spring v4.3.0, I encountered the following error when starting the Rails console:
$ bin/spring stop && rails c
Spring is not running
/usr/share/rvm/gems/ruby-3.0.5@dmp/gems/railties-7.1.5.1/lib/rails/railtie.rb:228:in `method_missing': undefined method `root' for Rails::Application:Class (NoMethodError)
from /usr/share/rvm/gems/ruby-3.0.5@dmp/gems/spring-4.3.0/lib/spring/application.rb:128:in `block in preload'
from /usr/share/rvm/gems/ruby-3.0.5@dmp/gems/spring-4.3.0/lib/spring/application.rb:127:in `each'
from /usr/share/rvm/gems/ruby-3.0.5@dmp/gems/spring-4.3.0/lib/spring/application.rb:127:in `preload'
from /usr/share/rvm/gems/ruby-3.0.5@dmp/gems/spring-4.3.0/lib/spring/application.rb:176:in `serve'
from /usr/share/rvm/gems/ruby-3.0.5@dmp/gems/spring-4.3.0/lib/spring/application.rb:158:in `block in run'
from /usr/share/rvm/gems/ruby-3.0.5@dmp/gems/spring-4.3.0/lib/spring/application.rb:152:in `loop'
from /usr/share/rvm/gems/ruby-3.0.5@dmp/gems/spring-4.3.0/lib/spring/application.rb:152:in `run'
from /usr/share/rvm/gems/ruby-3.0.5@dmp/gems/spring-4.3.0/lib/spring/application/boot.rb:25:in `<top (required)>'
from <internal:/usr/share/rvm/rubies/ruby-3.0.5/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
from <internal:/usr/share/rvm/rubies/ruby-3.0.5/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
from -e:1:in `<main>'
The source of the problem may lie within our own codebase. However, I've created the following issue which describes things in further detail: rails/spring#737.
The text was updated successfully, but these errors were encountered:
aaronskiba
changed the title
Issue with Spring v4.3.0 Preloading - undefined method root' for Rails::Application:Class (NoMethodError)`
Issue with Spring v4.3.0 Preloading - undefined method 'root' for Rails::Application:Class (NoMethodError)Apr 28, 2025
When using Spring v4.3.0, I encountered the following error when starting the Rails console:
The source of the problem may lie within our own codebase. However, I've created the following issue which describes things in further detail: rails/spring#737.
The text was updated successfully, but these errors were encountered: