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

'Could not find watchman' Error emitted even though watchman is installed #4773

Closed
vmalloc opened this Issue Aug 30, 2015 · 2 comments

Comments

Projects
None yet
3 participants
@vmalloc

vmalloc commented Aug 30, 2015

Getting this (with 1.13.8, simply running ember build --watch):

version: 1.13.8                                                                                                                        │installing controller-test
Could not find watchman, falling back to NodeWatcher for file system events.                                                           │  create tests/unit/site/services/controller-test.js
Visit http://www.ember-cli.com/user-guide/#watchman for more info.

I do have watchman however:

$ which -a watchman
/usr/local/bin/watchman
$ watchman --version
3.7.0
@callicles

This comment has been minimized.

Show comment
Hide comment
@callicles

callicles Sep 4, 2015

Same issue:

$ brew info watchman
watchman: stable 3.7.0 (bottled), HEAD
Watch files and take action when they change
https://github.com/facebook/watchman
/usr/local/Cellar/watchman/3.7.0 (9 files, 240K) *
  Poured from bottle
From: https://github.com/Homebrew/homebrew/blob/master/Library/Formula/watchman.rb
==> Dependencies
Build: autoconf ✘, automake ✘, pkg-config ✘
Required: pcre ✔
$ ember -v
version: 1.13.8
Could not find watchman, falling back to NodeWatcher for file system events.
Visit http://www.ember-cli.com/user-guide/#watchman for more info.
node: 0.12.7
npm: 2.13.4
os: darwin x64

callicles commented Sep 4, 2015

Same issue:

$ brew info watchman
watchman: stable 3.7.0 (bottled), HEAD
Watch files and take action when they change
https://github.com/facebook/watchman
/usr/local/Cellar/watchman/3.7.0 (9 files, 240K) *
  Poured from bottle
From: https://github.com/Homebrew/homebrew/blob/master/Library/Formula/watchman.rb
==> Dependencies
Build: autoconf ✘, automake ✘, pkg-config ✘
Required: pcre ✔
$ ember -v
version: 1.13.8
Could not find watchman, falling back to NodeWatcher for file system events.
Visit http://www.ember-cli.com/user-guide/#watchman for more info.
node: 0.12.7
npm: 2.13.4
os: darwin x64
@stefanpenner

This comment has been minimized.

Show comment
Hide comment
@stefanpenner

stefanpenner Sep 4, 2015

Contributor

strange, i think the error message may be incorrect. It may be that watchman failed to start correctly (or something)

Contributor

stefanpenner commented Sep 4, 2015

strange, i think the error message may be incorrect. It may be that watchman failed to start correctly (or something)

benshine added a commit to benshine/ember-cli that referenced this issue Oct 3, 2015

homu added a commit that referenced this issue Jan 26, 2016

Auto merge of #4929 - benshine:bugfix-4773-could-not-find-watchman, r…
…=stefanpenner

BUGFIX Close #4773 Clarify problem is with starting watchman, not finding it.

#4773 is confusing because the warning message emitted says that watchman couldn't be *found*. In some cases, though this error message is emitted when watchman *was* found, but failed to *start*. This tiny change in the language of the warning should help developers who encounter it investigate why watchman won't start. Maybe the problem is still that watchman couldn't start because it's not installed, or maybe -- as happened to me -- watchman was stuck in a bad state.

I'd like to also clarify that they should try `watchman watch .` to find out the problem, but I couldn't find where the source for http://www.ember-cli.com/user-guide/#watchman is. Point me there and I'll put up a PR to clarify that too.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment