facebook / facebook/watchman

Watchman crawl failed.

Open
#947 0 comments 5 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
13.7k
Forks
1.1k
PR merge metrics
No merged PRs in 30d

Description

Hello guys,

I have been using React-native for over a year on MacOs. It was working without a hitch for the past 14 months.

Recently enough(a couple of weeks back), the watchman service stopped working and now every time, I make a small code change, I have to stop the metro server and re-build the entire app just to see if the change has been reflected or not.

This is causing a huge drop in productivity.
Could you please help me out in figuring out what the problem is.

Errors observed when running : react-native start --reset-cache

```
jest-haste-map: Watchman crawl failed. Retrying once with node crawler.
Usually this happens when watchman isn't running. Create an empty .watchmanconfig file in your project's root folder or initialize a git or hg repository in your project.
Error: Watchman error: watchman::QueryExecError: query failed: synchronization failed: root dir was removed or is inaccessible. Make sure watchman is running for this project. See https://facebook.github.io/watchman/docs/troubleshooting.html.
```

Errors observed when running : react-native start
```
jest-haste-map: Watchman crawl failed. Retrying once with node crawler.
Usually this happens when watchman isn't running. Create an empty `.watchmanconfig` file in your project's root folder or initialize a git or hg repository in your project.
Error: Watchman error: watchman::QueryExecError: query failed: synchronization failed: sync: creat(/Users/supreethpadavala/implatformmobile/.watchman-cookie-IM/-600-1) failed: No such file or directory: No such file or directory. Make sure watchman is running for this project. See https://facebook.github.io/watchman/docs/troubleshooting.html.
```

I have tried out most of the popular suggestions present on the Web.
Things which I have tried out:
1. Re-installed node, re-installed watchman
2. Granted 777 access to source code repo.
3. Granted full disk access to Watchman and terminal from Security & Preferences options in MacOs.
4. Ran the react-native command as sudo.

None of the above suggestions have helped me.
Could you suggest any alternatives ?

Watchman version:
```
{
"version": "2021.08.30.00"
}
```
MacOs version: `10.15.7`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.