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

fail better with watchman #2645

Merged
merged 4 commits into from
Dec 3, 2014
Merged

Conversation

calvinmetcalf
Copy link
Contributor

see #2644

@stefanpenner
Copy link
Contributor

@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';
Copy link
Contributor

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' ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes updating

Copy link
Contributor

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');
Copy link
Contributor

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

@stefanpenner
Copy link
Contributor

I suspect this also fixes: #2599

@stefanpenner
Copy link
Contributor

LGTM, will merge when green thanks!

stefanpenner added a commit that referenced this pull request Dec 3, 2014
@stefanpenner stefanpenner merged commit d458844 into ember-cli:master Dec 3, 2014
@stefanpenner
Copy link
Contributor

thank you sir.

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

Successfully merging this pull request may close these issues.

2 participants