Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Relay VSCode Extension: Does not work without Watchman #4301

Open
irond13 opened this issue Apr 27, 2023 · 1 comment
Open

Relay VSCode Extension: Does not work without Watchman #4301

irond13 opened this issue Apr 27, 2023 · 1 comment

Comments

@irond13
Copy link

irond13 commented Apr 27, 2023

Hi all!

When trying to use the VSCode Extension, I'm greeted with the following errors:

/workplace/xxx/YYYY/node_modules/relay-compiler/linux-x64/r
elay --watch --output=verbose
thread 'main' panicked at 'Cannot run relay in watch mode if `watchman` is not available (or explicitly disabled).', crates/relay-bin/src/main.rs:286:9
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

This could be a misunderstanding of the requirements (i.e. watchman is actually a required implicit dependency).

If so, some follow-ups:

  1. Neither the documentation of the extension nor the Relay docs - which links to it - mentions this as a dependency. It would be great if this could be noted for fellow travelers.
  2. It is effectively impossible to install watchman on certain platforms (see Impossible to install on Amazonlinux watchman#1135). Are there plans to remove the dependency on watchman to allow wider usage of the extension? It seems this has been done for vscode-graphql in FEATURE: Remove dependency "watchman" graphql/vscode-graphql#116, however here the dependency seems deeper.
  3. In the meantime, are there recommended alternative IDE (VS Code) toolings to use for Relay development? Presumably before Relay 14.x - which is a requirement for the Relay VSCode extension, Relay users used other tools for syntax highlighting, autocomplete, etc. Should those still work with Relay 14.x?

(Apologies if I missed that *one thing, and it is actually possible to use the Relay VSCode extension without watchman)

Many thanks!

@irond13
Copy link
Author

irond13 commented May 3, 2023

It seems there are issues installing Watchman on other platforms as well: facebook/watchman#1116

I received the same issue on Debian bullseye (the default VSCode Dev Containers image)

facebook-github-bot pushed a commit that referenced this issue Feb 24, 2024
… the tutorial (#4620)

Summary:
Address issues like #4301 and #4242

Add instructions for installing watchman to the tutorial.

Testing:
<img width="1308" alt="image" src="https://github.com/facebook/relay/assets/3454734/035b07db-30d0-4867-9246-7c400d8af3bf">
<img width="1323" alt="image" src="https://github.com/facebook/relay/assets/3454734/23d0e393-4144-49e5-8b95-9d306a98e033">

Pull Request resolved: #4620

Reviewed By: tyao1

Differential Revision: D54124996

Pulled By: monicatang

fbshipit-source-id: 2bb51eeca2dd7a9c7a937b7aec20bd2c5aca9920
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant