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

Use new shutdown procedure #251

Merged
merged 1 commit into from Jul 23, 2016
Merged

Conversation

ptrv
Copy link
Collaborator

@ptrv ptrv commented Jan 6, 2016

The ycmd server has now a shutdown handler and we need to send a
shutdown request instead of killing the process.

See ycm-core/ycmd#282

Resolves #240


This does nothing if no server is running."
(interactive)

(unwind-protect
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Why is unwind-protect used here? There is no unwind forms (2nd parmaeter)?

Copy link
Owner

Choose a reason for hiding this comment

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

Good question. I guess that either a) it's a vestige that can be removed or b) ycmd--global-teardown was supposed to be the unwind form. Maybe it should be (when (ycmd-running?) (unwind-protect (...shutdown...) (ycmd--global-teardown))). But I'm not sure how it got this way...

Copy link
Owner

Choose a reason for hiding this comment

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

Ahhh...I see that's exactly what you've done! ;)

@abingham
Copy link
Owner

abingham commented Jan 7, 2016

I don't have time to really test this right now, but if it works for you then I'm glad to merge it in.

@ptrv
Copy link
Collaborator Author

ptrv commented Jan 7, 2016

We need to wait here for upstream. They haven't merged it yet in ycmd. Added the new "blocked" and "waiting for upstream" labels to this issue 😄

This doesn't work with the current implementation.

@abingham
Copy link
Owner

abingham commented Jan 7, 2016

Sounds good :)

@vheon
Copy link

vheon commented Jul 23, 2016

ycm-core/ycmd#282 was merged 😃

@ptrv
Copy link
Collaborator Author

ptrv commented Jul 23, 2016

@vheon Cool! Thanks for letting us know

@ptrv
Copy link
Collaborator Author

ptrv commented Jul 23, 2016

There is more change needed. The startup process changed and with the new changes from ycmd starting the server does not work anymore, since ycmd is not posting serving on http://127.0.0.1:<port> anymore. I guess we need to change our startup code... :/

@ptrv ptrv merged commit ef1aa38 into abingham:master Jul 23, 2016
@ptrv
Copy link
Collaborator Author

ptrv commented Jul 23, 2016

The server address print has been re-added in ycmd server.

@ptrv ptrv deleted the new-shutdown-procedure branch August 1, 2016 08:04
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.

None yet

3 participants