Closed shaojunjie0912 closed 6 months ago
pylsp
plugin installed?pylsp
plugin? I think my mason plugins manager works well.Firstly, I created a virtual environment of python by python -m venv .env
.
Then, I sourced the activate.
After that, I installed the pylsp
by pip install python-lsp-server
and pip install "python-lsp-server[all]"
Eventually, I created a test.py
like this:
a=1
c=b+a
I got no diagnosis and I couldn't format my code.
2. Sorry, but what do you mean that all the
pylsp
plugin? I think my mason plugins manager works well.
After that, I installed the
pylsp
bypip install python-lsp-server
andpip install "python-lsp-server[all]"
I'm not sure if pip-installed pylsp
would work w/ mason-installed pylsp
. 🤔
u can check all LSPs managed by mason
at .local/share/nvim/mason/packages
. (each LSP got it's own venv
if it's written python.)
Hi, I went home just now and tested it again, it worked properly in my another computer (also WSL2-ArchLinux).
I created the virtualenv, then created the test.py directly, everything's OK!
Even if I pip install
pylsp
again, it didn't have any conflicts.
So, I didn't think it's the problem of nvimdots
, maybe it's my mistake. I'm sorry.
Thanks a lot!
I love nvimdots
!❤️
Version confirmation
Following prerequisites
Not a user config issue
Neovim version
NVIM v0.9.5
Operating system/version
WSL2-ArchLinux
Terminal name/version
Windows Terminal
$TERM environment variable
No response
Branch info
main (Default/Latest)
Fetch Preferences
SSH (use_ssh = true)
Affected language servers
pylsp
How to reproduce the issue
Just open a *.py for test.
Actual behavior
It couldn't give me any diagnosis.
But I have installed pylsp successfully.
Expected behavior
It should show diagnosis but not.
Support info
:LspInfo
:Mason
Logs
Additional information
No response