guard/guard — Issue #215: Guard not sending notifications through to growl
Author: njdancer
Created: 2012-01-03 06:59:22+00:00
State: open

Hey guys, I seem to be having a very strange issue and its quite possible that its down to my configuration however this is a reasonably new install and can't think of much that would conflict. I am using rspec 2.7.0, guard 0.9.3, guard-rspec 0.5.10 and growl 1.0.3. Now when I start guard it definitely detects growl installed as it prints Guard uses growl to send notifications to the terminal however after some digging and debugging I have found that when notify is called from the spec formatter included in guard-rspec, then the array of notifications in Guard::Notifier is empty, This array gets populated at the same time that the Guard uses growl for notifications message is printed which means this should not be empty and it appears something is emptying it in between start up and notifying. A way around this that I have found is to add auto_detect_notification to the beginning of the notify method in Guard::Notifier to force this array to be repopulated before it tries to send through the notification.

Cheers
Nick