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

Jest is missing watchman version compatibility checks #2735

Closed
wez opened this issue Jan 29, 2017 · 13 comments
Closed

Jest is missing watchman version compatibility checks #2735

wez opened this issue Jan 29, 2017 · 13 comments

Comments

@wez
Copy link

wez commented Jan 29, 2017

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.

@thymikee
Copy link
Collaborator

This seems like a nice to have, anybody interesting in contributing this check? :)

@Aftabnack
Copy link
Contributor

I call it!

@Aftabnack
Copy link
Contributor

So this is relating to the version of fb-watchman installed?
Upgrading jest will automatically update the version of fb-watchman, is there a scenario when we would have an older version running.

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.

@Aftabnack
Copy link
Contributor

Aftabnack commented Feb 16, 2018

I'm guessing in jest it just falls back to node js file crawler? If watchman is not found?

@thymikee
Copy link
Collaborator

Not sure about Ubuntu. Jest doesn't install watchman for you. E.g. on macOS you need brew install watchman. fb-watchman is just a nodejs client: https://github.com/facebook/watchman/tree/master/node

@Aftabnack
Copy link
Contributor

Was just going through the docs. So I cannot test the change.

@Aftabnack
Copy link
Contributor

You can look at PR and the change. If that is enough to close this, go ahead and do so.
Or if you want someone with watchman installed to test this out. Then someone else can take this up.

@Aftabnack
Copy link
Contributor

Someone else can take this up. :)

@DavideDaniel
Copy link

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

@k-rajat19
Copy link
Contributor

@thymikee how can i test this or reproduce this error. I have installed lower version of fb-watchman but not getting this error and everything works fine.
OS - windows 7 64 bit

@github-actions
Copy link

github-actions bot commented Dec 4, 2022

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.

@github-actions github-actions bot added the Stale label Dec 4, 2022
@github-actions
Copy link

github-actions bot commented Jan 3, 2023

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.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jan 3, 2023
@github-actions
Copy link

github-actions bot commented Feb 3, 2023

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.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants