-
Notifications
You must be signed in to change notification settings - Fork 341
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
OS X issues (bad environment variable, file descriptor was not passed) #2
Comments
I have the same problem. |
Same here but with different exceptions for rspec and console:
I didn't looked the spring source yet, just reporting that the issue exists :) ruby 1.9.3-p327 and rails 3.2.9 |
HA! The problem only happens when spring got called using I'm using the OS X, can be related? I don't have a linux machine right now to check that. |
Right, this may be an OS X issue. I have only been able to test it on Linux so far, so I don't know for sure that it works on OS X yet. This error looks like an empty string is getting passed as the rails environment for the command. The rails environment to use is determined here: Could somebody please play with the code and work out what's going on? Is one of BTW, spring isn't designed to be run with |
I will try to debug the cause ;) |
I'm not sure if non-deterministic is the right term but you'll get the idea. Sometimes the exception is raised and sometimes not, the time command is not related to the problem. I thought that was but sometimes the spring works using the time and sometimes not, same happens without the time, sometimes works and sometimes not. The exception is almost the same on every fail:
Sometimes when I connect to the socket of spring using an irb session, the exception is raised and sometimes not:
First try:
Second try:
I'm not sure if something should happen just after connecting to the socket, I was thinking that it would wait for a command before doing anything. Seems like the server is doing something just after connecting and since I didn't send any command yet (that will discover the environment), the problem happens. I'm not pretty familiar with sockets, I think that's my problem now :( Anyway, this helps in something? If you need to run something to trace the problem, tell me :) |
same error for me (MAC OSX) with or with |
Thanks guys. Does this branch help at all? https://github.com/jonleighton/spring/tree/fix_fd_not_passed |
@jonleighton not yet, same error :(
|
I installed the latest spring from git and i am still getting the following:
|
/Users/jack/.rvm/gems/ruby-1.9.3-p327@app-gemset/gems/spring-0.0.2/lib/spring/application_manager.rb:58:in `[]=': bad environment variable value (ArgumentError)
Originally had it in :development group, now trying at top level in gemfile. Neither seems to work. Have you come across this yourself?
The text was updated successfully, but these errors were encountered: