Closed
Description
The use of Bundler
in #588 is causing:
foo-app:master $ cd /tmp/foo-app/; spring stop; trash tmp/cache/boot*; bin/rails g -h /t/foo-app
Spring stopped.
fish: No matches for wildcard 'tmp/cache/boot*'. See `help expand`.
cd /tmp/foo-app/; spring stop; trash tmp/cache/boot*; bin/rails g -h
^
/Users/elia/.asdf/installs/ruby/2.6.3/lib/ruby/gems/2.6.0/gems/spring-2.1.1/lib/spring/configuration.rb:8:in `gemfile': uninitialized constant #<Class:Spring>::Bundler (NameError)
from /Users/elia/.asdf/installs/ruby/2.6.3/lib/ruby/gems/2.6.0/gems/spring-2.1.1/lib/spring/configuration.rb:47:in `find_project_root'
from /Users/elia/.asdf/installs/ruby/2.6.3/lib/ruby/gems/2.6.0/gems/spring-2.1.1/lib/spring/configuration.rb:41:in `project_root_path'
from /Users/elia/.asdf/installs/ruby/2.6.3/lib/ruby/gems/2.6.0/gems/spring-2.1.1/lib/spring/configuration.rb:32:in `application_root_path'
from /Users/elia/.asdf/installs/ruby/2.6.3/lib/ruby/gems/2.6.0/gems/spring-2.1.1/lib/spring/application.rb:288:in `loaded_application_features'
from /Users/elia/.asdf/installs/ruby/2.6.3/lib/ruby/gems/2.6.0/gems/spring-2.1.1/lib/spring/application.rb:119:in `ensure in preload'
from /Users/elia/.asdf/installs/ruby/2.6.3/lib/ruby/gems/2.6.0/gems/spring-2.1.1/lib/spring/application.rb:126:in `preload'
from /Users/elia/.asdf/installs/ruby/2.6.3/lib/ruby/gems/2.6.0/gems/spring-2.1.1/lib/spring/application.rb:157:in `serve'
from /Users/elia/.asdf/installs/ruby/2.6.3/lib/ruby/gems/2.6.0/gems/spring-2.1.1/lib/spring/application.rb:145:in `block in run'
from /Users/elia/.asdf/installs/ruby/2.6.3/lib/ruby/gems/2.6.0/gems/spring-2.1.1/lib/spring/application.rb:139:in `loop'
from /Users/elia/.asdf/installs/ruby/2.6.3/lib/ruby/gems/2.6.0/gems/spring-2.1.1/lib/spring/application.rb:139:in `run'
from /Users/elia/.asdf/installs/ruby/2.6.3/lib/ruby/gems/2.6.0/gems/spring-2.1.1/lib/spring/application/boot.rb:19:in `<top (required)>'
from /Users/elia/.asdf/installs/ruby/2.6.3/lib/ruby/site_ruby/2.6.0/rubygems/core_ext/kernel_require.rb:72:in `require'
from /Users/elia/.asdf/installs/ruby/2.6.3/lib/ruby/site_ruby/2.6.0/rubygems/core_ext/kernel_require.rb:72:in `require'
from -e:1:in `<main>'
The app comes from a vanilla rails new
plus solidus
added to the gemfile (I was testing a generator).
I think it just needs to require Bundler where it's used. Locally I solved by downgrading to v2.1.0.
Metadata
Metadata
Assignees
Labels
No labels