Repository: rails/spring

Issue #456: Spring is broken with bundler >= 1.11.0
Created: 2015-12-16T16:41:35Z
After rubygems/bundler#4002 (which is included into 1.11.0 and up) bundler restores RUBYLIB env var, but it seems that spring actually needs former behavior.
spring-1.6.0 (rails-4.2.5) w/ bundler >= 1.11.0 fails like this:
ojab-notebook:dashboard-ng ojab$ bundle exec rails c
/Users/ojab/.rvm/rubies/ruby-2.2.3/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require': cannot load such file -- bundler/setup (LoadError)
    from /Users/ojab/.rvm/rubies/ruby-2.2.3/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
    from /Users/ojab/Documents/repos/phones/dashboard-ng/vendor/bundle/ruby/2.2.0/gems/spring-1.6.0/lib/spring/commands.rb:33:in `<module:Spring>'
    from /Users/ojab/Documents/repos/phones/dashboard-ng/vendor/bundle/ruby/2.2.0/gems/spring-1.6.0/lib/spring/commands.rb:4:in `<top (required)>'
    from /Users/ojab/.rvm/rubies/ruby-2.2.3/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
    from /Users/ojab/.rvm/rubies/ruby-2.2.3/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
    from /Users/ojab/Documents/repos/phones/dashboard-ng/vendor/bundle/ruby/2.2.0/gems/spring-1.6.0/lib/spring/application.rb:77:in `preload'
    from /Users/ojab/Documents/repos/phones/dashboard-ng/vendor/bundle/ruby/2.2.0/gems/spring-1.6.0/lib/spring/application.rb:143:in `serve'
    from /Users/ojab/Documents/repos/phones/dashboard-ng/vendor/bundle/ruby/2.2.0/gems/spring-1.6.0/lib/spring/application.rb:131:in `block in run'
    from /Users/ojab/Documents/repos/phones/dashboard-ng/vendor/bundle/ruby/2.2.0/gems/spring-1.6.0/lib/spring/application.rb:125:in `loop'
    from /Users/ojab/Documents/repos/phones/dashboard-ng/vendor/bundle/ruby/2.2.0/gems/spring-1.6.0/lib/spring/application.rb:125:in `run'
    from /Users/ojab/Documents/repos/phones/dashboard-ng/vendor/bundle/ruby/2.2.0/gems/spring-1.6.0/lib/spring/application/boot.rb:18:in `<top (required)>'
    from /Users/ojab/.rvm/rubies/ruby-2.2.3/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
    from /Users/ojab/.rvm/rubies/ruby-2.2.3/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
    from -e:1:in `<main>'

sping app/server starts fine:
ojab            23200   0.1  0.1  2480972  11048   ??  Ss    4:38PM   0:00.12 spring app    | dashboard-ng | started 9 secs ago | development mode
ojab            23198   0.0  0.3  2505632  23612 s005  S     4:38PM   0:00.32 spring server | dashboard-ng | started 9 secs ago

Issue for bundler is filled (rubygems/bundler#4165), but I'm not really sure that it is their bug.

Duplicate issue #464: Unable to start rails console
Created: 2016-01-03T23:04:48Z
I m unable to start rails console while having gem spring in the gem file. This is the error I get :
±  |master ✗| → bin/rails console
Ignoring bcrypt-3.1.10 because its extensions are not built.  Try: gem pristine bcrypt --version 3.1.10
Ignoring binding_of_caller-0.7.2 because its extensions are not built.  Try: gem pristine binding_of_caller --version 0.7.2
Ignoring byebug-6.0.2 because its extensions are not built.  Try: gem pristine byebug --version 6.0.2
Ignoring debug_inspector-0.0.2 because its extensions are not built.  Try: gem pristine debug_inspector --version 0.0.2
Ignoring json-1.8.3 because its extensions are not built.  Try: gem pristine json --version 1.8.3
Ignoring nokogiri-1.6.6.2 because its extensions are not built.  Try: gem pristine nokogiri --version 1.6.6.2
Ignoring passenger-5.0.23 because its extensions are not built.  Try: gem pristine passenger --version 5.0.23
Ignoring pg-0.18.3 because its extensions are not built.  Try: gem pristine pg --version 0.18.3
Ignoring sqlite3-1.3.10 because its extensions are not built.  Try: gem pristine sqlite3 --version 1.3.10
Ignoring unf_ext-0.0.7.1 because its extensions are not built.  Try: gem pristine unf_ext --version 0.0.7.1
/Users/c0mrade/.rbenv/versions/2.2.2/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require': cannot load such file -- bundler/setup (LoadError)
    from /Users/c0mrade/.rbenv/versions/2.2.2/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
    from /RDX/dc/vendor/bundle/gems/spring-1.6.1/lib/spring/commands.rb:33:in `<module:Spring>'
    from /RDX/dc/vendor/bundle/gems/spring-1.6.1/lib/spring/commands.rb:4:in `<top (required)>'
    from /Users/c0mrade/.rbenv/versions/2.2.2/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
    from /Users/c0mrade/.rbenv/versions/2.2.2/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
    from /RDX/dc/vendor/bundle/gems/spring-1.6.1/lib/spring/application.rb:77:in `preload'
    from /RDX/dc/vendor/bundle/gems/spring-1.6.1/lib/spring/application.rb:143:in `serve'
    from /RDX/dc/vendor/bundle/gems/spring-1.6.1/lib/spring/application.rb:131:in `block in run'
    from /RDX/dc/vendor/bundle/gems/spring-1.6.1/lib/spring/application.rb:125:in `loop'
    from /RDX/dc/vendor/bundle/gems/spring-1.6.1/lib/spring/application.rb:125:in `run'
    from /RDX/dc/vendor/bundle/gems/spring-1.6.1/lib/spring/application/boot.rb:18:in `<top (required)>'
    from /Users/c0mrade/.rbenv/versions/2.2.2/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
    from /Users/c0mrade/.rbenv/versions/2.2.2/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
    from -e:1:in `<main>'

Using spring 1.6.1 like you can see from the logs. I can't load my console if I only stop spring bin/spring stop from running. I have to also remove it from my Gemfile and do a bundle install. I m using rails 4.2.5
Am I doing something wrong here?

Closing comment (2016-01-04T12:25:07Z): Looks like a duplicate of #456