-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
[Packager] Watchman fails silently if no root_files are found (ex. .git) #2042
Comments
@jaredly FWIW, at FB, we require enforce_root_files to be set to avoid having folks unwittingly create overlapping watches. Because our source trees are so large this is a very real cause of performance and reliability issues with watching the filesystem, and is in fact the reason why this feature even exists :-) @amasad is this a side effect of using watch-project exclusively now in sane? Do we know if the only people that are hitting this are at FB? I don't believe that folks outside FB will have the root files restrictions enabled, and certainly not by default. It would be great to double check what is happening there as watch-project is supposed to fall back to watching the directory of interest if we can't locate a root. |
Ok -- yeah I guess it's just because of the watchman config in |
I just spent half an hour on this problem. It should really be documented in the troubleshooting page. |
This file tells watchman to watch this folder if "root_restrict_files" is turned on. Fixes facebook#2042
Summary: This file tells watchman to watch this folder if "root_restrict_files" is turned on. Fixes #2042 Closes facebook/react-native#2263 Github Author: Alex Kotliarskyi <[email protected]>
I kept getting this error:
And reinstalled watchman a bunch of times, restarted my mac, etc...
Digging into the
sane
package, and adding this patch, I was able to discover that the actual watchman error (it was working just fine) was:Which really meant: running
git init
solved everything. But I wasted a lot of time wondering why things were broken.So I think the right thing to do here is turn off
enforce_root_files
.The text was updated successfully, but these errors were encountered: