-
Notifications
You must be signed in to change notification settings - Fork 168
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
watchman query fail #302
Comments
It cannot because buckw has no way to know what the project root is. Is your |
Hey folks, I'm the watchman guy. I've just had a user report a problem in facebook/watchman#426 (which was formerly #255 for you) and I suspect it is due to this line: Line 62 in cb912a9
There are a couple of problems here:
I'd recommend that you fixup the script to properly consume the results from |
@wez Thanks for the insights. The only other watch that happens at the same root is the watch setup by the buck build that follows the watch in the Regarding error handling, we do perform that in Line 135 in cb912a9
|
You need to keep in mind that watchman is a shared resource; there are other tools that may establish watches and may influence the results of the watch-project call depending on which one runs first. You may also want to try dropping in an empty I'd be happy to help review and advise on any changes around this! |
We do have a
Is there anything in particular we should pay attention to in terms of configuration? |
is that re: the contents, the |
hijacking this thread for general feedback on the watchman usage in the wrapper; these are just some micro-optimization perf nits:
|
@vanniktech try these steps:
|
@vanniktech thanks! I am going to cleanup the wrapper with @wez 's suggestions and okbuck will automatically include a .watchmanconfig when creating the wrapper if you do not have one. Ill add more info to the wiki once this is available |
Okay cool. Looking forward to the changes, thank you everyone once again. |
lgtm
…On Jan 27, 2017 5:34 PM, "Gautam Korlam" ***@***.***> wrote:
@wez <https://github.com/wez> I have cleaned up the watchman queries
thanks to your suggestions. Please leave any feedback you have on #359
<#359>
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#302 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ACW3y311JqlmYwmoyK9BCjTGWPAmAhzgks5rWbokgaJpZM4LUqBr>
.
|
My project dir is a child of git root dir, so when I run
watchman watch-project
it returns:And when
buckw
query/Users/piasy/src/Yolo/piasyRepo/YOLO-Android/YOLO-Android-Client
, it fails:Hope
buckw
take care ofrelative_path
.The text was updated successfully, but these errors were encountered: