-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
fail better with watchman #2645
Conversation
@calvinmetcalf awesome, i was going to do this later today, but I appreciate the fix. |
try { | ||
version = JSON.parse(output).version; | ||
} catch(e) { | ||
version = '0.0.0'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we maybe instead log a useful error and fall back to options.watcher = 'node'
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes updating
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ideally something short but actionable
version = JSON.parse(output).version; | ||
} catch(e) { | ||
options.watcher = 'node'; | ||
debug('looks like you have a different program called watchman, falling back to NodeWatcher'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sorry misleading.
debug
is actually just our internal debug logging, via https://github.com/visionmedia/debug
ui.writeLine
is for humanized default output
I suspect this also fixes: #2599 |
LGTM, will merge when green thanks! |
thank you sir. |
see #2644