Skip to content
This repository has been archived by the owner on Jan 13, 2022. It is now read-only.

Timeout error raised by FileWatcher is silently swallowed #63

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

AleCaste
Copy link

If the MAX_WAIT_TIME timeout is reached, the error that is thrown by
FileWatcher is swallowed by the _loading Promise and thus it nevers gets
to the caller. This can be fixed by adding a 'done' block to this
promise.
Also, some of the messages that are displayed to the user should be a
bit more clearer.

If the MAX_WAIT_TIME timeout is reached, the error that is thrown by
FileWatcher is swallowed by the _loading Promise and thus it nevers gets
to the caller. This can be fixed by adding a 'done' block to this
promise.
Also, some of the messages that are displayed to the user should be a
bit more clearer.
@facebook-github-bot
Copy link

Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign up at https://code.facebook.com/cla - and if you have received this in error or have any questions, please drop us a line at [email protected]. Thanks!

];
if (Watcher === sane.WatchmanWatcher) {
lines.push(
'Try running `watchman version` from your terminal',
'https://facebook.github.io/watchman/docs/troubleshooting.html',
);
} else {
lines.push('The current library being used by the file watcher is NodeWatcher. We recommend you install Watchman on your system (http://facebook.github.io/watchman/) and run the app again to check if file crawling runs faster then.');

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we? /cc @cpojer

@davidaurelio
Copy link

Also, add a test, please. And make sure it fails without your changes.

@facebook-github-bot
Copy link

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants