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

shutdown-server shows incorrect version number #407

Closed
rmaz opened this issue Dec 30, 2016 · 4 comments
Closed

shutdown-server shows incorrect version number #407

rmaz opened this issue Dec 30, 2016 · 4 comments

Comments

@rmaz
Copy link

rmaz commented Dec 30, 2016

watchman --version outputs 4.7.0, watchman shutdown-server outputs:

{
    "version": "4.6.0",
    "shutdown-server": true
}

not an earth shaker admittedly.

@wez
Copy link
Contributor

wez commented Dec 31, 2016

That just means that the running version of the watchman server was 4.6.0 and you had a newer client binary installed. The --version flag shows the version of the watchman.exe that you're running, whereas the json output from various commands shows the server version.

If watchman version doesn't agree with watchman --version it means that you should run watchman shutdown-server ; watchman version to re-launch the watchman server.

@rmaz
Copy link
Author

rmaz commented Jan 3, 2017

Interesting. If I try watchman shutdown-server ; watchman version I get:

{
    "version": "4.6.0",
    "shutdown-server": true
}
{
    "version": "4.6.0"
}

But watchman --version gives 4.7.0. Explicitly killing the process has the same effect.

@wez
Copy link
Contributor

wez commented Jan 3, 2017

Are you on a mac using homebrew? You may be experiencing something like this issue: #358

@rmaz
Copy link
Author

rmaz commented Jan 6, 2017

Yes and yes, launchctl unload -F ~/Library/LaunchAgents/com.github.facebook.watchman.plist does the trick.

@rmaz rmaz closed this as completed Jan 6, 2017
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