panthomakos/guard-yard — Issue #4: Reloading is unaware of .yardopts file
Author: SFEley
Created: 2012-03-06 00:32:33+00:00
State: open

I have an API wrapper gem for which I've produced a **.yardopts** file with a couple of custom tags and some other directives. If I start Guard with no **.yardoc** directory, Guard-Yard correctly generates the initial documentation using the options I specified, but then fails to recognize any of my custom tags on subsequent changes. The next time I change any file I get errors like this:

```
[Guard::Yard] Detected changes in lib/em-aws/sns.rb.
[warn]: Unknown tag @request
[warn]: Unknown tag @request in file `lib/em-aws/sns.rb` near line 20
[warn]: Unknown tag @request
[warn]: Unknown tag @response
[warn]: Unknown tag @request in file `lib/em-aws/sns.rb` near line 18
[warn]: Unknown tag @response in file `lib/em-aws/sns.rb` near line 18
[warn]: Unknown tag @request
[warn]: Unknown tag @request in file `lib/em-aws/sns.rb` near line 24
[Guard::Yard] Updated documentation for lib/em-aws/sns.rb.
```

I'd be okay with the warnings, except that nothing else in the documentation for that class ever seems to change after that point. It gets "stuck" on whatever was most recently in the cache.

For the moment I'm simply disabling Guard-Yard and using `yard server --reload` (which works correctly). I'd love it if Guard-Yard could correctly account for **.yardopts** on changes, however, because I'm actively using and loving Guard for everything else, and this is a great idea.