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

Uninstall subtlety & how I fixed a Watchman hang #361

Closed
onpaws opened this issue Sep 15, 2016 · 2 comments
Closed

Uninstall subtlety & how I fixed a Watchman hang #361

onpaws opened this issue Sep 15, 2016 · 2 comments

Comments

@onpaws
Copy link

onpaws commented Sep 15, 2016

First off wanted to say thanks to everyone involved in this excellent app!

This issue involves both the Homebrew formula and watchman.

Today something in my watchman state dir caused a hang[1] just like #358 (comment).
I also solved by #358 (comment).

Confusingly (to me), brew uninstall watchman didn't touch that directory.
On the one hand, it would have saved me a few hours today. On the other hand, @wez based on your #358 (comment) it sounds like that folder is potentially valuable for debugging.

Inside I see a log file (helpful) but also pid/state/socket, the inclusion of which in brew uninstall could have saved me this trouble.

@Jerzerak, @wez, (any other maintainers): thoughts? how do other packages handle this?
Is there a brew uninstall -complete $PACKAGE or something?
My naive thought: feels like a good compromise may be retaining/leaving the logfile but removing the rest.


[1] Launching the RN Packager, watchman watch-del-all or react-native start --reset-cache all just hung (kind of like running cat by itself).

React Native 0.33, OS X 10.11.6, Homebrew 0992951, node 6.5.0

@onpaws
Copy link
Author

onpaws commented Sep 15, 2016

Bonus naive thought: What are the implications in simply keeping the state in /tmp/?

I ask because during my troubleshooting I had tried rebooting and as you can imagine it didn't make a difference.

@wez
Copy link
Contributor

wez commented Sep 15, 2016

This is a duplicate of #358, so I'm closing this in favor of that. I'll add some comments to answer some of your questions over there so that we don't fragment into too many threads.

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

2 participants