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
[READY] Implement shutdown handler #2245
Conversation
Nice! Review status: 0 of 9 files reviewed at latest revision, 1 unresolved discussion, some commit checks failed. python/ycm/youcompleteme.py, line 130 [r1] (raw file):
Actually, this should be inside Of course, there's nothing wrong with setting a different value to the member var in other functions, but they should be declared in Any instances where we have member vars declared outside of Comments from Reviewable |
Review status: 0 of 9 files reviewed at latest revision, 1 unresolved discussion, some commit checks failed. python/ycm/youcompleteme.py, line 130 [r1] (raw file):
|
Review status: 0 of 9 files reviewed at latest revision, 1 unresolved discussion, some commit checks failed. python/ycm/youcompleteme.py, line 130 [r1] (raw file):
Why is this a problem? I'm fine with setting the var to
Up to you. All I'd like to see is all member vars set to something in the ctor so that the reader can easily see what are all the member vars used in the class. Comments from Reviewable |
Awesome. Reviewed 7 of 9 files at r1, 3 of 4 files at r2. autoload/youcompleteme.vim, line 779 [r2] (raw file):
Does this work on py3 ? Isn't the command :py3 ? IIRC we have a method or some script-local variable used to call the correct Comments from Reviewable |
Reviewed 1 of 1 files at r3. autoload/youcompleteme.vim, line 779 [r2] (raw file):
|
Reviewed 1 of 4 files at r2. python/ycm/youcompleteme.py, line 130 [r1] (raw file):
|
Reviewed 6 of 9 files at r1, 4 of 4 files at r2, 1 of 1 files at r3. .gitmodules, line 6 [r3] (raw file):
Don't forget to remove this. :) Comments from Reviewable |
Looks good, though it looks like there's a problem with the CI... do you need a rebase, or is it flaking? Review status: all files reviewed at latest revision, 3 unresolved discussions, some commit checks failed. Comments from Reviewable |
Yes, a rebase was needed. Reviewed 5 of 9 files at r1, 3 of 4 files at r2, 1 of 1 files at r4. Comments from Reviewable |
Use shutdown request to stop ycmd server in a portable way.
Create a Server_test class for tests that need a server instance.
Updated to latest ycmd. This is ready. Reviewed 3 of 4 files at r5. .gitmodules, line 6 [r3] (raw file):
|
Reviewed 1 of 1 files at r4, 3 of 4 files at r5. Comments from Reviewable |
@homu r=puremourning Reviewed 5 of 9 files at r1, 1 of 4 files at r2, 1 of 1 files at r4, 3 of 4 files at r5. Comments from Reviewable |
📌 Commit 4e94d7c has been approved by |
⚡ Test exempted - status |
[READY] Implement shutdown handler This PR depends on ycm-core/ycmd#282. We don't want to block Vim exit if the server takes too much time to answer the shutdown request so we use a timeout of 100ms for this request. In my experience, it takes ~5ms. The `YcmStopServer` command only exists for testing purpose. It will be removed in the final version of this PR. Fixes #876. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/valloric/youcompleteme/2245) <!-- Reviewable:end -->
This PR depends on ycm-core/ycmd#282.
We don't want to block Vim exit if the server takes too much time to answer the shutdown request so we use a timeout of 100ms for this request. In my experience, it takes ~5ms.
The
YcmStopServer
command only exists for testing purpose. It will be removed in the final version of this PR.Fixes #876.
This change is