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

Error while handling server requests with non-integer request id #905

Closed
jwortmann opened this issue Mar 11, 2020 · 0 comments · Fixed by #906
Closed

Error while handling server requests with non-integer request id #905

jwortmann opened this issue Mar 11, 2020 · 0 comments · Fixed by #906
Assignees
Labels

Comments

@jwortmann
Copy link
Member

From the Sublime console:

Error handling server payload
Traceback (most recent call last):
  File "C:\Users\Janos\AppData\Roaming\Sublime Text 3\Installed Packages\LSP.sublime-package\plugin/core/rpc.py", line 201, in receive_payload
    self.request_or_notification_handler(payload)
  File "C:\Users\Janos\AppData\Roaming\Sublime Text 3\Installed Packages\LSP.sublime-package\plugin/core/rpc.py", line 250, in request_or_notification_handler
    request_id_int = int(request_id)
ValueError: invalid literal for int() with base 10: '32c845a7-9a86-4bf4-9d12-b4813fcfbca5'

This happens with the Julia language server which was updated to v2.0.0 recently.

If I see it correctly, LSP assumes in plugin/core/rpc.py#L250 and in plugin/core/protocol.py that the request id is always integer, but the specification seems to allow arbitrary strings as well. Apparently the language server uses UUID's now. The server no longer works for me at all, probably because it is waiting for a response with that id.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants