emacs-lsp / lsp-mode

Emacs client/library for the Language Server Protocol
https://emacs-lsp.github.io/lsp-mode
GNU General Public License v3.0
4.78k stars 884 forks source link

Warning (lsp-mode): Unknown request method: workspace/diagnostic/refresh #4570

Open vikigenius opened 2 weeks ago

vikigenius commented 2 weeks ago

Thank you for the bug report

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 https://github.com/emacs-lsp/lsp-mode/pull/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

vikigenius commented 2 weeks ago

I am able to consistently reproduce this if I make changes to pyproject.toml

lassemaatta commented 4 days ago

I'm experiencing the same issue with a few LSP servers (clojure-lsp, lsp-tailwindcss).