-
Notifications
You must be signed in to change notification settings - Fork 241
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::Formatter::NotificationRSpec again #288
Comments
I had a similar issue... did you try giving
|
Having the same problem. Tried |
@Fryie - could you create a repo reproducing the problem (and the exact commmand you're using)? I'm guessing there's a problem with how the child process is created (which is where the special formatter is used). |
+1 I'm seeing it. |
@cloudbring - create a repo to reproduce this and I'll take a look |
Might this be caused by/related to the I think it might be relevant that (p.s. I am a Rails newb and have, relatively speaking, no idea what I am talking about.) |
Seeing this as well, even with the |
Disregard. Passing |
bump, as this is still a very annoying issue. |
@saneshark - can you provide a repo to reproduce this? |
I believe @davidrunger already has one: https://github.com/davidrunger/issue_two_eighty_eight |
tl;dr: As @bm5k discovered, you can avoid hitting this problematic line of code by providing a guard :rspec, cmd: 'spring rspec', notification: false do
# ...
end This eliminates the deprecation warning in the demo repo that was linked to above. I think that I figured out what the problem is, in my case, at least. The arg_parts << "-f Guard::RSpec::Formatter::Notification#{rspec_class}#{rspec_version == 1 ? ":" : " --out "}/dev/null" which ultimately triggers the deprecation warning. It is because of the It seems that this problematic line of code was changed on Sep 29, 2012, in a commit titled "Remove RSpec 1.x support": 31e1be0#diff-11bf02294329a3c67809ed844af6ced0L95, and we only see this problem resurfacing now because of the dependency interaction with Thanks for your work on this gem, @e2 ! |
@davidrunger - awesome explanation, thanks! I think I should patch the old version of guard-rspec to avoid that formatter if newer version of RSpec - and release a fix for the guard-rspec 1.x branch. And copy the new formatter from guard-rspec 2.x and use it if a newer version of RSpec is created. Meanwhile, there's ongoing work to get spring using a newer version of listen: rails/spring-watcher-listen#1 (though this is waiting on other issues to be fixed, namely for Celluloid 0.16.1). So there's both Listen 2.x support in Listen to finish and guard-rspec 1.x to fix (PRs welcome for the later, since I'm already working on the former). Again - thanks for explaining! |
👍 as setting |
@saneshark - I agree with you 100%. I'm not sure I can Listen 2.x can happen for Spring, so I'll see if I can find time to patch this. |
I released guard-rspec 1.2.2 by backporting the new formatter from guard-rspec 4.x. It should get rid of the deprecation problem until guard-rspec 4.x can be used with spring-watcher-listen. |
Solves the problem for me. (For newbs like me: |
Hi,
I can't get rid of that annoying stuff in my specs. Added
gem 'rspec-legacy_formatters'
to myGemfile
, added--deprecation-out
toGuardfile
's:cmd
, nothing helps. How can I deal with it? Thanks.The text was updated successfully, but these errors were encountered: