-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
Jest is missing watchman version compatibility checks #2735
Comments
This seems like a nice to have, anybody interesting in contributing this check? :) |
I call it! |
So this is relating to the version of If watchman server is indeed running separately, then I don't remember setting it up for my usage of jest. How do I recreate this issue? Do I already have watchman installed out of the box on ubuntu? Does jest internally install watchman server when setting it up. |
I'm guessing in jest it just falls back to node js file crawler? If watchman is not found? |
Not sure about Ubuntu. Jest doesn't install watchman for you. E.g. on macOS you need |
Was just going through the docs. So I cannot test the change. |
You can look at PR and the change. If that is enough to close this, go ahead and do so. |
Someone else can take this up. :) |
after going through various tools including watchman I ended up back here realizing really this is a problem with someone at jest attributing this error in a way that anyone who's not at facebook would be right to be confused - maybe it's just a matter of elaborating the error message |
@thymikee how can i test this or reproduce this error. I have installed lower version of |
This issue is stale because it has been open for 1 year with no activity. Remove stale label or comment or this will be closed in 30 days. |
This issue was closed because it has been stalled for 30 days with no activity. Please open a new issue if the issue is still relevant, linking to this one. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
In facebook/watchman#428 the user rightly reports that the error message is a bit cryptic.
In this case, jest should be using a capability check to gate the use of
watch-project
.An example of that can be found in the docs here:
https://facebook.github.io/watchman/docs/nodejs.html#checking-for-watchman-availability
Using literally that check will suffice to catch this specific problem; if the installed watchman server doesn't support relative roots (which is the capability that you need for watch-project to succeed), then the version command will fail with a more descriptive error message, and because you know that it failed during the capability check, you can tailor the jest specific error message to be more directive; just tell the user to upgrade their watchman server.
The text was updated successfully, but these errors were encountered: