guard/guard — Issue #166: Silent failure after re-evaluating Guardfile
Author: dgutov
Created: 2011-10-16 16:42:30+00:00
State: open

I'm running virtualized Ubuntu on Win7 host, the working directory is mounted with `vboxsf` driver.

If I edit Guardfile while `guard` is running, it prints

```
Ignoring paths: public
Guardfile has been re-evaluated.
```

and then stops running the current guards.
Commands `p`, `r` and `q` work as expected, but hitting `return` doesn't do anything anymore, neither does editing any of the watched files.

If I quit it like that, `guard-spork` leaves the `spork` process running. The problem could be on its side, but the related issue is supposedly fixed.

Gemfile:

```
group :test do
gem 'spork', '~> 0.9.0.rc'
gem 'spork-testunit'
gem 'mocha'
gem 'guard-spork'
gem 'guard-test'
end
```

Guardfile:

```
ignore_paths 'public'

guard 'spork', :wait => 30, :notification => true do
watch('config/application.rb')
watch('config/environment.rb')
watch('config/routes.rb')
watch(%r{^config/environments/.*\.rb$})
watch(%r{^config/initializers/.*\.rb$})
watch('Gemfile')
watch('Gemfile.lock')
watch('test/test_helper.rb')
end

guard :test, :drb => true do
watch(%r{^lib/(.+)/([^/]+)\.rb$}) { |m| "test/#{m[1]}/#{m[2]}_test.rb" }
{ "models" => "unit", "controllers" => "functional" }.each do |cs, ts|
watch(%r{^app/#{cs}/([^/]+)\.rb$}) { |m| "test/#{ts}/#{m[1]}_test.rb" }
end
watch(%r{^test/(.+)/.*test_case\.rb}) { |m| "test/#{m[1]}" }
watch(%r{^test/.*test\.rb})
end
```