Closed sdsaati closed 1 year ago
I removed pylsp server and instead used this require('lspconfig').pylsp.setup{}
manually to solve the problem, but have no idea why it can't be installed through mason-lspconfig itself.
Hello! So if I had to guess it's because installation fails, so every time Neovim launches it'll try to install the package because it's not yet installed. Are you seeing any errors in the :Mason
window and in the :MasonLog
that could help you pinpoint the issue perhaps?
Thanks for your response, The last 2 lines of :MasonLog
is :
[INFO Thu 29 Dec 2022 02:15:00 AM +0330] ...acker/start/mason.nvim/lua/mason-core/installer/init.lua:119: Executing installer for Package(name=python-lsp-server)
[ERROR Thu 29 Dec 2022 02:15:00 AM +0330] ...acker/start/mason.nvim/lua/mason-core/installer/init.lua:155: Installation failed for Package(name=python-lsp-server) error="...acker/start/mason.nvim/lua/mason-core/installer/init.lua:122: ...r/start/mason.nvim/lua/mason-core/managers/pip3/init.lua:90: Unable to create python3 venv environment."
Now when I tried to install pyright
through :Mason
(by pressing i on it) it installed it correctly and now all the things are working so well!
Thank you problem is solved by your suggestion
Problem description
There are some servers that when I tell it to install them, they don't be installed. after restarting nvim, it again says:
[mason-lspconfig.vim]: installing SERVER
, I can't install any python servers: pyright, sourcery, jedi_language_server, pylsp, and some other servers. I'm using pop-os and my nvim has been installed/used by an app.image from the official neovim website.Why do you think this is an issue with mason-lspconfig.nvim?
Yes, because inside of its information message
[mason-lspconfig.vim]: installing SERVER
, it's talking about mason-lspconfig.vimNeovim version (>= 0.7)
NVIM v0.8.1 Build type: RelWithDebInfo LuaJIT 2.1.0-beta3
Operating system/version
Linux pop-os 5.19.0-76051900-generic #202207312230~1663791054~22.04~28340d4 SMP PREEMPT_DYNAMIC Wed S x86_64 x86_64 x86_64 GNU/Linux
I've manually reviewed the Nvim LPS client log (
:LspLog
) to find potential errorsI've recently downloaded the latest plugin version of mason.nvim, mason-lspconfig.nvim, and nvim-lspconfig
Affected language servers
pyright, sourcery, jedi_language_server, pylsp, and some others
Steps to reproduce
[mason-lspconfig.vim]: installing SERVER
for each lsp server it can't installActual behavior
whenever I run nvim, it says:
[mason-lspconfig.vim]: installing SERVER
for each lsp server it can't installExpected behavior
nvim is being running without any warning or information
LspInfo
LspLog
Healthcheck
Screenshots or recordings
No response