-
-
Notifications
You must be signed in to change notification settings - Fork 900
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
Overwhelming number of signature requests/flooding language server implementation #3718
Comments
Perhaps this is two separate issues:
|
I think so! both would be great. |
A way to throttle requests would be great, I'm currently hitting the same issue with zls |
This is quite easily reproducible with |
I am facing the same issue in neovim, every keypress produces error and in a few minutes lsp commands turn to be veeery slow |
I tried using I see very similar messages in
|
Thank you for the bug report
lsp-mode
related packages.M-x lsp-start-plain
Bug description
I'm having issues with python-lsp-server (pylsp) - I am able to configure/connect to a pylsp server in my virtualenvironment - but - it often times will use 100%+ of my CPU (as reported by top) and crucially - totally freeze emacs!
There's an issue in the python-lsp-server repo here: python-lsp/python-lsp-server#227
It looks like - lsp-mode is sending over signature requests or other commands on every keypress, and then cancelling the previous request. However it looks like python-lsp-server does not support cancel requests, so all of those requests bring everything to a halt unless I type very very slowly.
Is there any configuration to... only send requests after a certain amount of time has passed from a keypress? (maybe only on servers that don't support canceling?) or any other advice for configuration or other python servers that don't have this issue?
Steps to reproduce
(I think a somewhat large project is required)
Expected behavior
lsp-mode to not flood the language server with requests if the server is unable to cancel them
Which Language Server did you use?
pylsp
OS
Linux
Error callstack
No response
Anything else?
mentioned in the discord here: https://discord.com/channels/789885435026604033/789890622424219658/1018883658226085970
The text was updated successfully, but these errors were encountered: