netzpirat/guard-jasmine — Issue #31: Failure to exit properly
Author: jimmycuadra
Created: 2012-02-01 08:09:59+00:00
State: open

Whenever I exit Guard with Guard::Jasmine running, I get this:

Guard::Jasmine stops server.
ERROR: Guard::Jasmine failed to achieve its , exception was:
NoMethodError: undefined method `poll_for_exit' for nil:NilClass
/Users/jimmy/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/guard-jasmine-0.9.6/lib/guard/jasmine/server.rb:41:in `stop'
/Users/jimmy/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/guard-jasmine-0.9.6/lib/guard/jasmine.rb:92:in `stop'
/Users/jimmy/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/guard-1.0.0/lib/guard.rb:369:in `block in run_supervised_task'
/Users/jimmy/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/guard-1.0.0/lib/guard.rb:367:in `catch'
/Users/jimmy/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/guard-1.0.0/lib/guard.rb:367:in `run_supervised_task'
/Users/jimmy/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/guard-1.0.0/lib/guard.rb:212:in `block in stop'
/Users/jimmy/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/guard-1.0.0/lib/guard.rb:301:in `block (3 levels) in run_on_guards'
/Users/jimmy/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/guard-1.0.0/lib/guard.rb:300:in `each'
/Users/jimmy/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/guard-1.0.0/lib/guard.rb:300:in `block (2 levels) in run_on_guards'
/Users/jimmy/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/guard-1.0.0/lib/guard.rb:299:in `catch'
/Users/jimmy/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/guard-1.0.0/lib/guard.rb:299:in `block in run_on_guards'
/Users/jimmy/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/guard-1.0.0/lib/guard.rb:298:in `each'
/Users/jimmy/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/guard-1.0.0/lib/guard.rb:298:in `run_on_guards'
/Users/jimmy/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/guard-1.0.0/lib/guard.rb:211:in `stop'
/Users/jimmy/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/guard-1.0.0/lib/guard/interactor.rb:125:in `process_input'
/Users/jimmy/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/guard-1.0.0/lib/guard/interactors/simple.rb:12:in `read_line'
/Users/jimmy/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/guard-1.0.0/lib/guard/interactor.rb:93:in `block in start'

Guard::Jasmine has just been fired

Versions:

* guard 1.0.0
* guard-jasmine 0.9.6

Guardfile:

guard 'jasmine', server: :none, port: 3000, all_after_pass: false do
watch(%r{app/assets/javascripts/(.+)\.(js\.coffee|js)}) { |m| "spec/javascripts/#{m[1]}_spec.#{m[2]}" }
watch(%r{spec/javascripts/(.+)_spec\.(js\.coffee|js)}) { |m| "spec/javascripts/#{m[1]}_spec.#{m[2]}" }
watch(%r{spec/javascripts/spec\.(js\.coffee|js)}) { "spec/javascripts" }
end