Closed jkutner closed 12 years ago
I'm getting the following error when I save a spec file and the watch logic executes:
ERROR: Problem with watch action!
undefined method `arity' for nil:NilClass
/Users/semperos/.rbenv/versions/jruby-1.6.7/lib/ruby/gems/1.8/gems/guard-1.0.3/lib/guard/watcher.rb:121:in `call_action'
/Users/semperos/.rbenv/versions/jruby-1.6.7/lib/ruby/gems/1.8/bundler/gems/guard-jruby-rspec-75e2562e19d7/lib/guard/jruby-rspec.rb:60:in `run_on_change'
org/jruby/RubyArray.java:1615:in `each'
(eval):3:in `each_with_optional_block'
/Users/semperos/.rbenv/versions/jruby-1.6.7/lib/ruby/gems/1.8/bundler/gems/guard-jruby-rspec-75e2562e19d7/lib/guard/jruby-rspec.rb:59:in `run_on_change'
org/jruby/RubyArray.java:1615:in `each'
(eval):3:in `each_with_optional_block'
/Users/semperos/.rbenv/versions/jruby-1.6.7/lib/ruby/gems/1.8/bundler/gems/guard-jruby-rspec-75e2562e19d7/lib/guard/jruby-rspec.rb:58:in `run_on_change'
org/jruby/RubyBasicObject.java:1704:in `__send__'
org/jruby/RubyKernel.java:2101:in `send'
/Users/semperos/.rbenv/versions/jruby-1.6.7/lib/ruby/gems/1.8/gems/guard-1.0.3/lib/guard.rb:395:in `run_supervised_task'
org/jruby/RubyKernel.java:1197:in `catch'
/Users/semperos/.rbenv/versions/jruby-1.6.7/lib/ruby/gems/1.8/gems/guard-1.0.3/lib/guard.rb:393:in `run_supervised_task'
/Users/semperos/.rbenv/versions/jruby-1.6.7/lib/ruby/gems/1.8/gems/guard-1.0.3/lib/guard.rb:349:in `run_on_change_task'
/Users/semperos/.rbenv/versions/jruby-1.6.7/lib/ruby/gems/1.8/gems/guard-1.0.3/lib/guard.rb:287:in `run_on_change'
/Users/semperos/.rbenv/versions/jruby-1.6.7/lib/ruby/gems/1.8/gems/guard-1.0.3/lib/guard.rb:327:in `run_on_guards'
org/jruby/RubyArray.java:1615:in `each'
(eval):3:in `each_with_optional_block'
/Users/semperos/.rbenv/versions/jruby-1.6.7/lib/ruby/gems/1.8/gems/guard-1.0.3/lib/guard.rb:326:in `run_on_guards'
org/jruby/RubyKernel.java:1197:in `catch'
/Users/semperos/.rbenv/versions/jruby-1.6.7/lib/ruby/gems/1.8/gems/guard-1.0.3/lib/guard.rb:325:in `run_on_guards'
org/jruby/RubyArray.java:1615:in `each'
(eval):3:in `each_with_optional_block'
/Users/semperos/.rbenv/versions/jruby-1.6.7/lib/ruby/gems/1.8/gems/guard-1.0.3/lib/guard.rb:324:in `run_on_guards'
/Users/semperos/.rbenv/versions/jruby-1.6.7/lib/ruby/gems/1.8/gems/guard-1.0.3/lib/guard.rb:286:in `run_on_change'
/Users/semperos/.rbenv/versions/jruby-1.6.7/lib/ruby/gems/1.8/gems/guard-1.0.3/lib/guard.rb:303:in `run'
/Users/semperos/.rbenv/versions/jruby-1.6.7/lib/ruby/gems/1.8/gems/guard-1.0.3/lib/guard.rb:300:in `run'
/Users/semperos/.rbenv/versions/jruby-1.6.7/lib/ruby/gems/1.8/gems/guard-1.0.3/lib/guard.rb:285:in `run_on_change'
/Users/semperos/.rbenv/versions/jruby-1.6.7/lib/ruby/gems/1.8/gems/guard-1.0.3/lib/guard/listener.rb:235:in `start_reactor'
org/jruby/RubyKernel.java:1410:in `loop'
/Users/semperos/.rbenv/versions/jruby-1.6.7/lib/ruby/gems/1.8/gems/guard-1.0.3/lib/guard/listener.rb:231:in `start_reactor'
Any immediate thoughts based on this stacktrace?
I should mention I'm using the Git checkout version of your code, which I've updated since you last pushed to master. JRuby version 1.6.7 on Mac OSX.
looks like one of the custom watchers is nil. can you open a new issue, and include your Guardfile?
should be able to autorun like guard-rspec