-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error using standard watch syntax #25
Comments
It's a workaround - notice |
So the data in the |
The patterns have to also be passed as an option - the plugin needs to know the pattern internally. (AFAIR, this is due to API changes in Guard, which prevent the watched patterns being accessible from inside a plugin). |
Running guard-rspec in tadnem with similar exampls in https://github.com/guard/guard-rspec seem to still be working, so just a bit confused about what changed, and why the pattern being defined IN the block no longer works. |
The options are shared because of how guard-coffeescript relies on patterns internally, especially for the So it's not enough to just have patterns defined in blocks (which guard-coffeescript itself has no longer access to). The reason guard-rspec doesn't need this is because of default spec paths supplied by RSpec configuration. Previously, guard-coffeescript "extracted" the patterns from watches through Guard internal API, which pretty much was a "hack". This also caused problems, because the user had little control over the patterns, and it caused confusion in some cases. You can think of the |
So based on the example provided through
guard init coffeescript
, i can get it working... however i prefer the approach of calling multiple watch methods explicitly, however that does not seem to work with this guard plugin.also (despite the examples in the README), without providing an
input
value, throws the error:input option not provided (see current template Guardfile)
having all my guard plugin declarations contained to the guard block makes my larger Guardfile much easier to read, so hopefully i just have some syntax incorrect.
thanks!
The text was updated successfully, but these errors were encountered: