Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot load such file -- spring/server #22

Closed
sobrinho opened this issue Jan 19, 2013 · 4 comments · Fixed by #29
Closed

cannot load such file -- spring/server #22

sobrinho opened this issue Jan 19, 2013 · 4 comments · Fixed by #29

Comments

@sobrinho
Copy link
Contributor

The latest published version is not working:

λ spring rspec spec/integrations/models/fiscal_shift_spec.rb 
-e:in `require': cannot load such file -- spring/server (LoadError)

λ spring console
-e:in `require': cannot load such file -- spring/server (LoadError)

Using bundler:

λ bundle exec spring console
/Users/sobrinho/Developer/.../vendor/bundle/ruby/1.9.1/gems/spring-0.0.2/lib/spring/application.rb:98:in `recv_io': file descriptor was not passed (msg_controllen=0 smaller than sizeof(struct cmsghdr)=12) (SocketError)
        from /Users/sobrinho/Developer/.../vendor/bundle/ruby/1.9.1/gems/spring-0.0.2/lib/spring/application.rb:98:in `redirect_output'
        from /Users/sobrinho/Developer/.../vendor/bundle/ruby/1.9.1/gems/spring-0.0.2/lib/spring/application.rb:64:in `serve'
        from /Users/sobrinho/Developer/.../vendor/bundle/ruby/1.9.1/gems/spring-0.0.2/lib/spring/application.rb:53:in `block in run'
        from /Users/sobrinho/Developer/.../vendor/bundle/ruby/1.9.1/gems/spring-0.0.2/lib/spring/application.rb:47:in `loop'
        from /Users/sobrinho/Developer/.../vendor/bundle/ruby/1.9.1/gems/spring-0.0.2/lib/spring/application.rb:47:in `run'
        from /Users/sobrinho/Developer/.../vendor/bundle/ruby/1.9.1/gems/spring-0.0.2/lib/spring/application.rb:43:in `start'
        from /Users/sobrinho/Developer/.../vendor/bundle/ruby/1.9.1/gems/spring-0.0.2/lib/spring/application_manager.rb:59:in `block in start_child'
        from /Users/sobrinho/Developer/.../vendor/bundle/ruby/1.9.1/gems/spring-0.0.2/lib/spring/application_manager.rb:55:in `fork'
        from /Users/sobrinho/Developer/.../vendor/bundle/ruby/1.9.1/gems/spring-0.0.2/lib/spring/application_manager.rb:55:in `start_child'
        from /Users/sobrinho/Developer/.../vendor/bundle/ruby/1.9.1/gems/spring-0.0.2/lib/spring/application_manager.rb:17:in `start'
        from /Users/sobrinho/Developer/.../vendor/bundle/ruby/1.9.1/gems/spring-0.0.2/lib/spring/application_manager.rb:36:in `block in run'
        from <internal:prelude>:10:in `synchronize'
        from /Users/sobrinho/.rbenv/versions/1.9.3-p327/lib/ruby/1.9.1/mutex_m.rb:62:in `mu_synchronize'
        from /Users/sobrinho/Developer/.../vendor/bundle/ruby/1.9.1/gems/spring-0.0.2/lib/spring/application_manager.rb:35:in `run'
        from /Users/sobrinho/Developer/.../vendor/bundle/ruby/1.9.1/gems/spring-0.0.2/lib/spring/server.rb:28:in `block in boot'
        from /Users/sobrinho/Developer/.../vendor/bundle/ruby/1.9.1/gems/spring-0.0.2/lib/spring/server.rb:28:in `loop'
        from /Users/sobrinho/Developer/.../vendor/bundle/ruby/1.9.1/gems/spring-0.0.2/lib/spring/server.rb:28:in `boot'
        from /Users/sobrinho/Developer/.../vendor/bundle/ruby/1.9.1/gems/spring-0.0.2/lib/spring/server.rb:9:in `boot'
        from /Users/sobrinho/Developer/.../vendor/bundle/ruby/1.9.1/gems/spring-0.0.2/lib/spring/server.rb:59:in `<main>'

I don't care about bundler, makes more sense to use spring without it.

Let's focus on require issue :)

@jonleighton
Copy link
Member

0.0.4 is the latest version - can you try that?

@sobrinho
Copy link
Contributor Author

Yep, I'm using the latest version:

~/Developer/secret/secret (1.9.3-p327) (master)
λ spring rake -T
-e:in `require': cannot load such file -- spring/server (LoadError)
^C/Users/sobrinho/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/spring-0.0.4/lib/spring.rb:50:in `sleep': Interrupt
        from /Users/sobrinho/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/spring-0.0.4/lib/spring.rb:50:in `boot_server'
        from /Users/sobrinho/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/spring-0.0.4/lib/spring.rb:54:in `run'
        from /Users/sobrinho/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/spring-0.0.4/lib/spring.rb:21:in `run'
        from /Users/sobrinho/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/spring-0.0.4/bin/spring:5:in `<top (required)>'
        from /Users/sobrinho/.rbenv/versions/1.9.3-p327/bin/spring:23:in `load'
        from /Users/sobrinho/.rbenv/versions/1.9.3-p327/bin/spring:23:in `<main>'


~/Developer/secret/secret (1.9.3-p327) (master)
λ gem list | grep spring
spring (0.0.4)

@sobrinho
Copy link
Contributor Author

Seems like the master version it's ok, I've bundled using the master branch and the error didn't happened.

I'm closing the issue but would be great to have a 0.0.5 including this fix :)

@sobrinho
Copy link
Contributor Author

I'm able to reproduce the problem on master version.

I'm working in a pull request to fix this ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants