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

watchman version hangs (macOS, installed via brew) #371

Closed
amurchick opened this issue Sep 26, 2016 · 12 comments
Closed

watchman version hangs (macOS, installed via brew) #371

amurchick opened this issue Sep 26, 2016 · 12 comments

Comments

@amurchick
Copy link

OS: macOS 10.12 (16A323)

$ watchman -v
4.7.0

$ brew -v
Homebrew 1.0.4-7-g6e57355
Homebrew/homebrew-core (git revision e741; last commit 2016-09-26)

When run watchman version - watchman hangs
screen shot 2016-09-26 at 14 06 26

@fenichelar
Copy link

fenichelar commented Sep 26, 2016

Same.

OS: El Capitan (10.11.6)
Watchman: 4.7.0
Brew: 1.0.4

Remove then install did not resolve.

@wez
Copy link
Contributor

wez commented Sep 26, 2016

Try this: #358 (comment)

@amurchick
Copy link
Author

amur@amur-mac:~$ launchctl unload ~/Library/LaunchAgents/com.github.facebook.watchman.plist
amur@amur-mac:~$ watchman version

Still hangs

@fenichelar
Copy link

fenichelar commented Sep 27, 2016

I then uninstalled and reinstalled watchman using homebrew. Actually, I think watchman was uninstalled prior to unloading but it shouldn't matter.

@wez
Copy link
Contributor

wez commented Sep 27, 2016

Weird. Can you try adding the -F flag:

launchctl unload -F ~/Library/LaunchAgents/com.github.facebook.watchman.plist

If it is still hanging after that, I'd like you to collect some diagnostics:

  • What does Console.app mention about watchman?
  • What watchman process(es) are running?
  • Please use Activity Monitor to "sample" any running watchman processes and attach the samples here

@amurchick
Copy link
Author

With -F flag still hangs

In Console when run watchman version add only this event:

screen shot 2016-09-28 at 21 53 48

ps ax | grep watchman:

~$ ps ax | grep watchman
 2978 s016  S+     0:00.02 /usr/local/Cellar/watchman/4.7.0/libexec/bin/watchman version
 3067 s017  S+     0:00.00 grep watchman
~$ 

Samples: watchman-samples.txt

@stefanpenner
Copy link

stefanpenner commented Oct 2, 2016

Weird. Can you try adding the -F flag:

launchctl unload -F ~/Library/LaunchAgents/com.github.facebook.watchman.plist

seems to address the hang for me, which started after the first restart of my system in a long time..

@amurchick
Copy link
Author

seems to address the hang for me, which started after the first restart of my system in a long time
This does not helps for me.

@ryankask
Copy link

ryankask commented Oct 10, 2016

This happened to me when I upgraded watchman from 4.6.0 to 4.7.0 using Homebrew and ran brew clean.

I restarted the system many days later after upgrading to Safari 10 but the path in the plist was still /usr/local/Cellar/watchman/4.6.0/libexec/bin/watchman, which doesn't exist, instead of /usr/local/Cellar/watchman/4.7.0/libexec/bin/watchman.

Doing the launchctl unload ~/Library/LaunchAgents/com.github.facebook.watchman.plist (outside of tmux) and then watchman version fixed the issue.

@wez
Copy link
Contributor

wez commented Oct 12, 2016

This is a duplicate of #358

@amurchick
Copy link
Author

Helps to me:

  1. Run launchctl unload ~/Library/LaunchAgents/com.github.facebook.watchman.plist outside of tmux
  2. Run watchman version outside of tmux

Thank you, @ryankask!

@nickzuber
Copy link

For letting watchman version work within tmux, you can use a plugin like tmux-MacOSX-pasteboard.

Simply install with brew

$ brew install reattach-to-user-namespace

and then add something like this to your .tmux.conf

set-option -g default-command "reattach-to-user-namespace -l zsh"

then just restart your tmux sessions

$ tmux kill-server

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

No branches or pull requests

6 participants