-
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
Guard-Rspec 4.6.0 - Guard::RSpec formatter! #334
Comments
It's likely a bug (the formatter needs an environment variable passed by Guard::Rspec - but zeus fork() is probably getting in the way somehow). Meanwhile, try and switch to an earlier version for Guard::RSpec: gem 'rspec', '~> 4.5.2' Let me know if that works (it should). |
Ok, I can't do much more than this workaround: https://github.com/guard/guard-rspec/blob/master/README.md#integration-with-zeus I've added an issue in: burke/zeus#523, so hopefully someday the workaround won't be necessary. |
Thanks for the kick answer, I moved to version 4.6 because of an other bug in 4.5.2 (formatter deprecation... I can't find the related issue, but was fixed) |
THANKS for the workaround… I'm moving to rails 4 and spring so a workaround is just fine! |
Glad to help. Let me know if you have any issues - including Guard, Guard::RSpec or Spring. For spring, you may prefer to add this gem: https://github.com/jonleighton/spring-watcher-listen (It uses native backend for listening to changes instead of polling - it may not be as responsive as zeus, but it should be pretty close). |
Hum, now I'm back with my error from 4.5.2… I'll investigate.
Seems to be related to rspec not guard-rspec |
Make sure you've switched back to guard-rspec 4.6.0. If that doesn't help, if you can, set up a repo so I can reproduce this (because this issue was quite tricky to reproduce and fix - without breaking other RSpec versions). Or, if you can't set up a repo, you can try adding guard-rspec/lib/guard/rspec_formatter.rb Lines 30 to 43 in 1796fda
At least if you can provide a dump of what |
Or, if you're in a hurry, you can just downgrade RSpec - to since before the deprecation. There are some cool new RSpec 3.3. features, but this shouldn't be a blocker for you to get work done. |
I'm back to guard-rspec 4.6.0, I think I'll downgrade. As you said it won't block me and I think you may not loose time to solve an issue for older configs (ruby 1.9.3, rails 3.2 it's pretty old nowadays) |
If there's a bug with the metadata thing, I'd like to know about - especially because lots of people have lots of old project they need to upgrade, and I wouldn't want Guard::RSpec to be in their way. So don't hesitate to report issues - you never know when a fixing a small deprecation issue leads to fixing a major, hard-to-debug issue elsewhere. Thanks and have a nice day! |
Ok no problem how can I send you all my metadata ? |
I meant the parameter Just add a line like this: IO.write('metadata.txt', metadata.inspect) before this line here: guard-rspec/lib/guard/rspec_formatter.rb Line 30 in 1796fda
Then,
|
Just make sure you're getting this deprecation on Guard::RSpec 4.6.0 Put this in the Gemfile to make sure, and restart Guard (and don't forget to restart Zeus too!): gem 'rspec', '~> 4.6.0' |
Thanks, here are my metadata, with Guard::RSpec 4.6.0 and the quick fix for zeus.
|
I checked this out and I think something else is wrong. First, if you can, add Second - it's strange, because if you're getting the error, it means Everything else seems ok (my RSpec version matches yours, I seem to have the same metadata structure, etc.), so I can't work out how you're getting a deprecation. Could you create a repo where I can reproduce the problem - I could probably fix this quickly. |
Hi, ok I'll try to do that asap, as I'm leasure developper I don't have much time right now. Thanks for your help. |
@elbouillon - the metadata (deprecation) problem is likely caused by #338 |
Great news! Thanks! |
Hi, I updated to the last version and I'm using zeus to run rspec trough guard. When I run it directly with zeus I don't get any message, but when I run it trough guard I'm getting a result file formatter error.
Here is my guardfile :
I tried to add :
, launchy: nil, notification: false
, but always get this error.The text was updated successfully, but these errors were encountered: