facebook / watchman

Watches files and records, or triggers actions, when they change.
https://facebook.github.io/watchman/
MIT License
12.64k stars 992 forks source link

Version v2023.12.18.00 just hangs on mac #1178

Closed LorandP closed 9 months ago

LorandP commented 9 months ago

Context: We are trying to run watchman in react-native but our build is stuck at 97%. We have installed watchman using brew.

Problem At some point, watchman throws this error:[cli] unable to talk to your watchman on /opt/homebrew/var/run/watchman/user_profile/sock! (No such file or directory) If navigate to that directory, we find that there is a sock file.

The following commands just hang: watchman --foreground, watchman watch-dell-all, watchman watch project_root_directory

What we tried: We reinstalled watchman We have given permission to that folder by running chmod 0700 /opt/homebrew/var/run/watchman/user_profile We also tried removing the pid as suggested here https://github.com/facebook/watchman/issues/671#issuecomment-496843860 We installed version 2022.11.07.00 from source

System: Macbook Pro M1 MacOS: Sonoma node: 21