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

Using wrong name for method client/registerFeature: should be client/registerCapability #199

Closed
kdvolder opened this issue Apr 20, 2017 · 7 comments
Labels
bug Issue identified by VS Code Team member as probable bug important Issue identified as high-priority
Milestone

Comments

@kdvolder
Copy link

I guess if we use both the client and server implementations here we won't notice this as both are using the same wrong names.

However trying to make this interoperate with lsp4j's implementation which actually uses the correct names things break with error like these:

[pool-2-thread-1] ERROR org.springframework.ide.vscode.commons.util.Log - Error
org.eclipse.lsp4j.jsonrpc.ResponseErrorException: Unhandled method client/registerCapability

This seems to be the problem: https://github.com/Microsoft/vscode-languageserver-node/blob/143fb3928737db949bb800ba27d1c6580ad0c024/client/src/protocol.ts#L95

Also the name for unregisterFeature seems to be wrong as well.

@david-driscoll
Copy link

I'm also running into this problem when trying to implement something against the spec... would be great if it were fixed.

@dbaeumer
Copy link
Member

Good catch. I changed the name when writing the spec but forgot to update the implementation. Will correct that.

@dbaeumer
Copy link
Member

@aeschli FYI. I will fix this as 3.2.1 and on the next 3.3.x release. I will push this as soon as 1.12 is out. If you update the node libararies make sure you update both client and server.

@dbaeumer dbaeumer added this to the April 2017 milestone Apr 27, 2017
@dbaeumer dbaeumer added bug Issue identified by VS Code Team member as probable bug important Issue identified as high-priority labels Apr 27, 2017
@aeschli
Copy link
Contributor

aeschli commented Apr 27, 2017

@dbaeumer Ok. Is the version just a patch number update (3.2.0 to 3.2.1)? I think we're fine as we use shrinkwrap on the server and client, but others might be impacted

@dbaeumer
Copy link
Member

It is a patch version number (3.2.0 -> 3.2.1). Agree that we shouldn't be impacted due to shrink wrap.

@dbaeumer
Copy link
Member

dbaeumer commented May 2, 2017

@aeschli added code to handle wrong requests sent from the server to the client on the client side. However if you have a never server with an older client this still causes problems.

@dbaeumer
Copy link
Member

dbaeumer commented May 3, 2017

Published 3.2.1.

@dbaeumer dbaeumer closed this as completed May 3, 2017
alanz added a commit to haskell/vscode-haskell that referenced this issue May 5, 2017
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 21, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug important Issue identified as high-priority
Projects
None yet
Development

No branches or pull requests

4 participants