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?