Skip to content
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

Error sending notification with tmux #500

Closed
bjoernalbers opened this issue Oct 16, 2013 · 4 comments
Closed

Error sending notification with tmux #500

bjoernalbers opened this issue Oct 16, 2013 · 4 comments

Comments

@bjoernalbers
Copy link

I just got this error with Guard 2 (Guard 1.8 works fine):

10:58:48 - ERROR - Error sending notification with tmux: undefined method `to_sym' for nil:NilClass
10:58:48 - ERROR - Error sending notification with terminal_title: undefined method `to_sym' for nil:NilClass

Versions:

  • Guard: Guard version 2.1.0
  • Tmux: tmux 1.6
  • Ruby: ruby 1.9.3p385 (2013-02-06 revision 39114) [x86_64-darwin12.2.0]
  • OS: Mac OS X 10.8.8

Debug-Output:

$ bundle exec guard --debug  
11:09:20 - DEBUG - Command execution: emacsclient --eval '1' 2> /dev/null || echo 'N/A'
11:09:20 - INFO - Guard is using Tmux to send notifications.
11:09:20 - INFO - Guard is using TerminalTitle to send notifications.
11:09:20 - DEBUG - Command execution: hash stty
11:09:20 - DEBUG - Guard starts all plugins
11:09:20 - DEBUG - Hook :start_begin executed for Guard::Cucumber
11:09:20 - INFO - Running all features
11:09:20 - DEBUG - Command execution: bundle exec cucumber --no-profile --color --format progress --strict --require /Users/bjoern/code/wrapp/vendor/ruby/1.9.1/gems/guard-cucumber-1.4.0/lib/guard/cucumber/notification_formatter.rb --format Guard::Cucumber::NotificationFormatter --out /dev/null --require features features 
Disabling profiles...


0 scenarios
0 steps
0m0.000s
11:09:23 - ERROR - Error sending notification with tmux: undefined method `to_sym' for nil:NilClass
11:09:23 - ERROR - Error sending notification with terminal_title: undefined method `to_sym' for nil:NilClass
11:09:23 - DEBUG - Hook :start_end executed for Guard::Cucumber
11:09:23 - DEBUG - Hook :start_begin executed for Guard::RSpec
11:09:23 - INFO - Guard::RSpec is running
11:09:23 - DEBUG - Hook :start_end executed for Guard::RSpec
11:09:23 - INFO - Guard is now watching at '/Users/bjoern/code/wrapp'
11:09:23 - DEBUG - Command execution: stty -g 2>/dev/null
11:09:23 - DEBUG - Start interactor
[1] guard(main)> 
@rymai
Copy link
Member

rymai commented Oct 16, 2013

Hello, I've pushed a commit to master so that debugging should be easier (backtraces are now displayed when in debug mode).

Could you try guard master in debug mode (in your Gemfile: gem 'guard', github: 'guard') and using one notifier at a time (in your Guardfile: notification :tmux first, then notification :terminal_title) and let us know what the errors and backtraces are?

Thanks in advance!

@netzpirat
Copy link
Contributor

Tmux works fine for me. Can you show your Guardfile and .guard.rb if present?

@bjoernalbers
Copy link
Author

@rymai I ran you backtrace patch against the given project but it couldn't reproduce the bug (same with guard 2.1 via RubyGems). Maybe a tmux hiccup? Anyway, sorry for the noise...

@rymai
Copy link
Member

rymai commented Oct 22, 2013

This is fixed in 2.2.1!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants