Closed CamJN closed 1 year ago
Do you happen to be running DOOM emacs?
Nope, my own artisanal emacs config.
Command "ruff-lsp" is not present on the path.
has started to appear in the list but pyright still does not.
Ok so it turns out that at least on macOS, this is completely broken unless you activate a venv in emacs in the python buffer before activating lsp-mode there. Otherwise, for some reason lsp-pyright cannot install pyright, and lsp-mode doesn't even know pyright is an language server for python. No idea why that is.
I have the following in my
~/.emacs.d/init.el
:and when I open a python file I see the following in the minibuffer:
Unable to find installed server supporting this file. The following servers could be installed automatically:
and the lsp-log says:Which seems like emacs isn't even trying to use pyright.
I have
lsp-pyright
20221201.1501
andlsp-mode
20230126.1057
installed.