-
Notifications
You must be signed in to change notification settings - Fork 997
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
Having lots of trouble getting watchman to work #32
Comments
The output from commands run by the trigger does to the watchman log file; it doesn't stay attached to your terminal. I've made other comments about this before: For your use case, I'd recommend that you use a wrapper script that calls Watchman is a bit different from the other watchers that are out there in that we run primarily as a background service. This makes it a bit more awkward to interact with in cases like this. One of the things I'd like to see get added to watchman is a non-persistent client that subscribes to the service and runs ad-hoc triggers for itself. This would make it easier to use watchman for this use-case. We haven't had the bandwidth to add this feature yet. |
For linting, you really need to see this in the foreground. If you're not afraid of doing some scripting, you could whip up the client for this pretty easily, here are some tips:
|
or just run jshint and pass it the files from the |
I'm closing this out due to lack of feedback. Happy to re-open and continue dialog if you still need some help. |
I use make too to auto exec it when a file change. To redirect the output from watchman executed commands, I use a FIFO (also because I use nailgun, not shown it this example):
|
Hello.
|
i'm trying to use watchman in a make file so i can issue
make watch
and have it lint my code.when i do this i get triggers for the right dir, however i don't see any output on the console.
we also looked at the watchman log output to see if the files were changing, and they are.
watchman --persistent --server-encoding=json log-level debug
log at https://gist.github.com/nurey/9916489
also, when i run
watchman find $(pwd)/src '*.js'
i get the file back that i want to be watched.really sorry to be posting an issue like this, but i could really use some working examples. the example on your readme that uses
ls -l
doesn't work for my either.The text was updated successfully, but these errors were encountered: