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

Failed to handle requests after exit #314

Closed
eyalk11 opened this issue Dec 14, 2022 · 2 comments · Fixed by #432
Closed

Failed to handle requests after exit #314

eyalk11 opened this issue Dec 14, 2022 · 2 comments · Fixed by #432
Labels
bug Something isn't working
Milestone

Comments

@eyalk11
Copy link

eyalk11 commented Dec 14, 2022

It doesn't function well. I am on windows.
It write root dir not found, and I can't do renaming. Saw this error:

[ERROR][2022-12-14 22:07:46] .../vim/lsp/rpc.lua:733	"rpc"	"pylsp"	"stderr"	"2022-12-14 22:07:46,297 Jerusalem Standard Time - ERROR - pylsp_jsonrpc.endpoint - Failed to handle request 3
Traceback (most recent call last):
  File \"C:\\Users\\ekarni\\AppData\\Local\\nvim-data\\lsp_servers\\pylsp\\venv\\lib\\site-packages\\pylsp_jsonrpc\\endpoint.py\", line 181, in _handle_request
    handler = self._dispatcher[method]
  File \"C:\\Users\\ekarni\\AppData\\Local\\nvim-data\\lsp_servers\\pylsp\\venv\\lib\\site-packages\\pylsp\\python_lsp.py\", line 200, in __getitem__
    raise KeyError
KeyError

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File \"C:\\Users\\ekarni\\AppData\\Local\\nvim-data\\lsp_servers\\pylsp\\venv\\lib\\site-packages\\pylsp_jsonrpc\\endpoint.py\", line 116, in consume
    self._handle_request(message['id'], message['method'], message.get('params'))
  File \"C:\\Users\\ekarni\\AppData\\Local\\nvim-data\\lsp_servers\\pylsp\\venv\\lib\\site-packages\\pylsp_jsonrpc\\endpoint.py\", line 183, in _handle_request
    raise JsonRpcMethodNotFound.of(method) from e
pylsp_jsonrpc.exceptions.JsonRpcMethodNotFound: Method Not Found: shutdown
"
@Jacob-Flasheye
Copy link

I get the same error, Ubuntu 20.04 using Python 3.11

@ccordoba12
Copy link
Member

It seems Neovim is sending more requests after an exit one, which is odd.

But the solution should be to avoid raising an error on our side when that happens and simply ignore those requests because they won't have any effect. We'll take care of that in our next release.

@ccordoba12 ccordoba12 added this to the v1.8.0 milestone Aug 9, 2023
@ccordoba12 ccordoba12 added the bug Something isn't working label Aug 9, 2023
@ccordoba12 ccordoba12 changed the title Failed to handle request Failed to handle requests after exit Sep 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
3 participants