warning: Watchman `watch-project` returned a warning: Recrawled this watch 11 times, most recently because:
MustScanSubDirs UserDroppedTo resolve, please review the information on
https://facebook.github.io/watchman/docs/troubleshooting.html#recrawl
To clear this warning, run:
`watchman watch-del '/path/to/my/project' ; watchman watch-project '/path/to/my/project'`
I'm constantly getting this warning when starting Metro (e.g. react-native start
).
I know the question has been asked before and the consensus is to run the following (as the warning also suggests):
watchman watch-del '/path/to/my/project' ;
watchman watch-project '/path/to/my/project'
This command does make it go away temporarily, however it comes back again in a few hours/next day. So it's never a solution, just a workaround. I'm on macOS 13.4 and also gave watchman full disk access, but that doesn't change anything either. Also, even if it worked, giving a command line tool full disk access (whereas it just should be accessing my project directory inside Documents) doesn't feel right from a security point of view anyway.
I also need watchman while working with React Native, so simply removing it also isn't an option (one of the questions had that as an "answer", hence the mention).
Why has this been happening for years now, and how can I get rid of this warning permanently?
fsevent
configuration items here. There are unlikely to be any silver bullets; you'll need to explore what works for your project / use-case. I've had success withfsevents_try_resync
, but as noted in the description: "There are possible undiagnosed correctness issues with this setting." π€· β Goulettewatchman watch-del-all
in my scripts or just ignoring it π€£ For what it's worth, I think the warning is just that, a warning, so ignoring it is viable. β Goulettewatchman watch-del-all
to myyarn start
script. β Sprinkle