Closed scmanjarrez closed 4 days ago
python-lsp-ruff
is different from ruff server
(or ruff-lsp
), running both at the same time leads to these problems. Please check that you are running either only pylsp
with python-lsp-ruff
or ruff-lsp
/ruff server
.
This issue should give you more insight: https://github.com/python-lsp/python-lsp-ruff/issues/98
I'll check it, thank you!
Edit: I'll leave my fix here for future readers. Instead of removing completely the package python-lsp-ruff (which I think is a bit drastic), I just disabled the ruff lsp server from starting in the first place.
(use-package lsp-mode
...
:config
(add-to-list 'lsp-disabled-clients 'ruff)
...
)
Hi, I've noticed that on start, the pylsp::sterr is showing this error. I'm not sure if it's related to this problem
Running lsp-format-buffer fails, and this is the trace in pylsp::stderr
I'm using latest pylsp version and python-lsp-ruff in emacs-lsp.
ruff/ruff::stderr buffers are empty.
Edit: The message "Ruff encountered a problem. Check the logs for more details" seems to appear when hovering the mouse in the first "error" shown by ruff
This is the log of ruff server