-
Notifications
You must be signed in to change notification settings - Fork 242
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
No such file or directory @ rb_sysopen - tmp/rspec_guard_result with a syntax error #362
Comments
Can you at least hint what kind of syntax error causes this? Also, the fix needs to be handled at a higher level (I have an idea for this, but I need to reproduce this). I can't accept this fix due to:
I can't reproduce this problem. The syntax errors I come up with just show up as syntax errors. |
yes, in a model |
I agree, that higher level is better ;-) |
I can't reproduce this. I'm correctly getting: It may depend how model classes are loaded, rails version, spring, etc. |
thanks dima4p for getting me back up and running, even if it is not ideal.. spring-1.7.1 |
Gosh, I'd be happy to fix this quickly (and release a fix) if I could only reproduce this. Could someone copy a failing project, remove all unnecessary files, and upload it as a repo so I can reproduce this and take a look? |
Please, try to run with Spork. I meet this problem in the projects that use it. |
@dima4p - could you create a small repo to reproduce the problem so I can work on this? If someone invests a bit of time into creating and sharing a repo with the issue, I'll invest some time into fixing this and releasing a fixed version. (I've been debugging similar issues with Zeus and it's just too easy get mixed up - so an example repository is very, very helpful). |
I've released v4.7.0 with extensive debugging to help resolve the issue. So I'll close this. If it still occurs:
|
Thanks @e2 I will give it a try when I can. I did try to get a simple project going to illustrate the error, but could not reproduce it. Made me think it was some kind of syntactical issue within one of my many specs in the problematic project. I tried systematically commenting out specs and simplifying my guardfile but alas, the error did not go away. |
With the new guard-rspec release and running under Hope that helps nails this. On Sun, May 22, 2016 at 04:28:42PM -0700, Ryan Johnson wrote:
|
I updated to 4.7.2 and I no longer get the error. Thanks. sorry it took me so long. |
Glad you have it work. Thanks for reporting. |
In the case of syntax error in the code RSpecProcess does not create formatter_tmp_file, so Guard::RSpec::Results.new generates an exception and guard fails.
Sorry, I can not now create PR, but the problem is fixed by writing the line results.rb#11 as follow:
lines = File.readlines(filename) rescue ['Syntax error']
The text was updated successfully, but these errors were encountered: