Any Return again... #167

Closed
earlonrails opened this Issue Oct 17, 2011 · 1 comment

Comments

Projects
None yet
2 participants
Contributor

earlonrails commented Oct 17, 2011

Hey all,
I know this isn't the most pressing issue, but I am still having trouble with the any_return. Looks like changed_paths and deleted_paths are trying to use start_with?('!') but Arrays and Hashes don't have these methods. I was wondering what we/I should do about that.

bundle exec guard -d
>>>Turn off AMQP/RabbitMQ support...
Authenticating mongo...
Guard is now watching at '/Users/telmate/Documents/git_tygerweb/tygerweb'
DEBUG (16:25:44): Hook :start_begin executed for Guard::FtpGuard
Starting FtpGuarding
DEBUG (16:25:44): Hook :start_end executed for Guard::FtpGuard
/Users/telmate/Documents/git_tygerweb/tygerweb/help/ruby/1.8/gems/guard-0.8.5/lib/guard.rb:283:in `changed_paths': undefined method `start_with?' for #<Array:0x102b64178> (NoMethodError)
    from /Users/telmate/Documents/git_tygerweb/tygerweb/help/ruby/1.8/gems/guard-0.8.5/lib/guard.rb:283:in `select'
    from /Users/telmate/Documents/git_tygerweb/tygerweb/help/ruby/1.8/gems/guard-0.8.5/lib/guard.rb:283:in `changed_paths'
    from /Users/telmate/Documents/git_tygerweb/tygerweb/help/ruby/1.8/gems/guard-0.8.5/lib/guard.rb:260:in `run_on_change_task'
    from /Users/telmate/Documents/git_tygerweb/tygerweb/help/ruby/1.8/gems/guard-0.8.5/lib/guard.rb:204:in `run_on_change'
    from /Users/telmate/Documents/git_tygerweb/tygerweb/help/ruby/1.8/gems/guard-0.8.5/lib/guard.rb:243:in `run_on_guards'
    from /Users/telmate/Documents/git_tygerweb/tygerweb/help/ruby/1.8/gems/guard-0.8.5/lib/guard.rb:242:in `each'
    from /Users/telmate/Documents/git_tygerweb/tygerweb/help/ruby/1.8/gems/guard-0.8.5/lib/guard.rb:242:in `run_on_guards'
    from /Users/telmate/Documents/git_tygerweb/tygerweb/help/ruby/1.8/gems/guard-0.8.5/lib/guard.rb:241:in `catch'
    from /Users/telmate/Documents/git_tygerweb/tygerweb/help/ruby/1.8/gems/guard-0.8.5/lib/guard.rb:241:in `run_on_guards'
    from /Users/telmate/Documents/git_tygerweb/tygerweb/help/ruby/1.8/gems/guard-0.8.5/lib/guard.rb:240:in `each'
    from /Users/telmate/Documents/git_tygerweb/tygerweb/help/ruby/1.8/gems/guard-0.8.5/lib/guard.rb:240:in `run_on_guards'
    from /Users/telmate/Documents/git_tygerweb/tygerweb/help/ruby/1.8/gems/guard-0.8.5/lib/guard.rb:203:in `run_on_change'
    from /Users/telmate/Documents/git_tygerweb/tygerweb/help/ruby/1.8/gems/guard-0.8.5/lib/guard.rb:220:in `run'
    from /Users/telmate/Documents/git_tygerweb/tygerweb/help/ruby/1.8/gems/guard-0.8.5/lib/guard.rb:217:in `synchronize'
    from /Users/telmate/Documents/git_tygerweb/tygerweb/help/ruby/1.8/gems/guard-0.8.5/lib/guard.rb:217:in `run'
    from /Users/telmate/Documents/git_tygerweb/tygerweb/help/ruby/1.8/gems/guard-0.8.5/lib/guard.rb:202:in `run_on_change'
    from /Users/telmate/Documents/git_tygerweb/tygerweb/help/ruby/1.8/gems/guard-0.8.5/lib/guard/listener.rb:78:in `start_reactor'
    from /Users/telmate/Documents/git_tygerweb/tygerweb/help/ruby/1.8/gems/guard-0.8.5/lib/guard/listener.rb:74:in `loop'
    from /Users/telmate/Documents/git_tygerweb/tygerweb/help/ruby/1.8/gems/guard-0.8.5/lib/guard/listener.rb:74:in `start_reactor'
    from /Users/telmate/Documents/git_tygerweb/tygerweb/help/ruby/1.8/gems/guard-0.8.5/lib/guard/listener.rb:73:in `initialize'
    from /Users/telmate/Documents/git_tygerweb/tygerweb/help/ruby/1.8/gems/guard-0.8.5/lib/guard/listener.rb:73:in `new'
    from /Users/telmate/Documents/git_tygerweb/tygerweb/help/ruby/1.8/gems/guard-0.8.5/lib/guard/listener.rb:73:in `start_reactor'
    from /Users/telmate/Documents/git_tygerweb/tygerweb/help/ruby/1.8/gems/guard-0.8.5/lib/guard/listener.rb:65:in `initialize'
    from /Users/telmate/Documents/git_tygerweb/tygerweb/help/ruby/1.8/gems/guard-0.8.5/lib/guard/listeners/darwin.rb:10:in `initialize'
    from /Users/telmate/Documents/git_tygerweb/tygerweb/help/ruby/1.8/gems/guard-0.8.5/lib/guard/listener.rb:36:in `new'
    from /Users/telmate/Documents/git_tygerweb/tygerweb/help/ruby/1.8/gems/guard-0.8.5/lib/guard/listener.rb:36:in `select_and_init'
    from /Users/telmate/Documents/git_tygerweb/tygerweb/help/ruby/1.8/gems/guard-0.8.5/lib/guard.rb:60:in `setup'
    from /Users/telmate/Documents/git_tygerweb/tygerweb/help/ruby/1.8/gems/guard-0.8.5/lib/guard.rb:130:in `start'
    from /Users/telmate/Documents/git_tygerweb/tygerweb/help/ruby/1.8/gems/guard-0.8.5/lib/guard/cli.rb:68:in `start'
    from /Users/telmate/Documents/git_tygerweb/tygerweb/help/ruby/1.8/gems/thor-0.14.6/lib/thor/task.rb:22:in `send'
    from /Users/telmate/Documents/git_tygerweb/tygerweb/help/ruby/1.8/gems/thor-0.14.6/lib/thor/task.rb:22:in `run'
    from /Users/telmate/Documents/git_tygerweb/tygerweb/help/ruby/1.8/gems/thor-0.14.6/lib/thor/invocation.rb:118:in `invoke_task'
    from /Users/telmate/Documents/git_tygerweb/tygerweb/help/ruby/1.8/gems/thor-0.14.6/lib/thor.rb:263:in `dispatch'
    from /Users/telmate/Documents/git_tygerweb/tygerweb/help/ruby/1.8/gems/thor-0.14.6/lib/thor/base.rb:389:in `start'
    from /Users/telmate/Documents/git_tygerweb/tygerweb/help/ruby/1.8/gems/guard-0.8.5/bin/guard:6
    from /Users/telmate/Documents/git_tygerweb/tygerweb/help/ruby/1.8/bin/guard:19:in `load'
    from /Users/telmate/Documents/git_tygerweb/tygerweb/help/ruby/1.8/bin/guard:19

netzpirat closed this in 1fc9575 Oct 17, 2011

Contributor

netzpirat commented Oct 17, 2011

Thanks for reporting this. I have now expanded the logic in the #changed_paths and #deleted_paths methods: If the list of paths contains an object that does not have a #start_with? method, then these "paths" are considered as changed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment