-
-
Notifications
You must be signed in to change notification settings - Fork 896
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
Warning (lsp-mode): Unknown request method: workspace/diagnostic/refresh #4570
Labels
Comments
I am able to consistently reproduce this if I make changes to pyproject.toml |
I'm experiencing the same issue with a few LSP servers ( |
I'm experiencing the same issue with (ts-ls) and (omnisharp) LSP servers and it gets reproduced every time I open emacs. |
The same issue with rust-analyzer |
alanz
added a commit
to alanz/lsp-mode
that referenced
this issue
Oct 28, 2024
lsp-mode does not currently support pull diagnostics. There is a recent change to the spec where the server can notify the client to request diagnostics, when the pull mode is being used. This is implemented incorrectly in a number of servers, which do not first check the relevant client capability. Mitigate this problem by a. Sending client capabilities to day that this is not supported b. Putting a null handler in for the server request message. Closes emacs-lsp#4570
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you for the bug report
lsp-mode
related packages.M-x lsp-start-plain
Bug description
Working on a Python project with two servers (basedpyright and ruff).
Lately after leaving Emacs idle for a few minutes, I always come back to this warning:
Warning (lsp-mode): Unknown request method: workspace/diagnostic/refresh
This only started happening after the switch from ruff-lsp to ruff server in this PR
#4543
Steps to reproduce
Start a python project with two servers after leaving Emacs idle for a while you get the warning
Expected behavior
No warnings since it seems like workspace/diagnostic/refresh should be a supported function
Which Language Server did you use?
pyright, ruff
OS
Linux
Error callstack
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: