facebook / relay

Relay is a JavaScript framework for building data-driven React applications.
https://relay.dev
MIT License
18.41k stars 1.83k forks source link

`relay-compiler --watch` stuck on `[INFO] querying files to compile...` #4545

Open maschwenk opened 11 months ago

maschwenk commented 11 months ago

Creating issues for Relay

watchman --version -- 2023.11.20.00 (also broken in latest release from brew install watchman) relay-compiler -- 16.x (also broken 15.x)

Watchman just hangs on [INFO] querying files to compile.... I'm guessing this is a Watchman issue but finding nothing in their Issues either.

alloy commented 10 months ago

Me and team members have also been running into this, as reported here https://github.com/facebook/relay/issues/4454

It’s always in conjunction with a chrome crash pad handler. Most of the times this means we have to kill vscode, electron based and thus has this crash pad handler, but I’ve also notice it at least once with Chrome. Other team members have also dealt with hanging jest instances, which also uses watchman, so definitely a high correlation.

maschwenk commented 10 months ago

Unfortunately, because of company policies on my machine I'm unable to easy install older versions of Watchman to validate against those. Other folks on my team with newer versions of Watchman have no issues. So I'm unclear what the root cause is. If it was related to chrome crash pad I'd expect it to go away on restarts but my issues seem to persist. I've tried using RUST_BACKTRACE=1 to even get an idea of what's hanging but no luck there.