Open oryband opened 1 year ago
I've fixed it on my own out of sheer luck: Apparently Pyright doesn't work with NodeJS installed via Snap even though both versions were NodeJS 18 https://snapcraft.io/install/node/ubuntu
I don't know why since there was no message indicating anything, I just tried uninstalling Node via Snap and installing via Nodesource and it worked. https://github.com/nodesource/distributions#debian-and-ubuntu-based-distributions
This should be 1) documented and 2) be debuggable. I've wasted so much time going in several directions until accidently stumbling upon this.
I ran into a similar issue with tsserver
and it took me 4 days to resolve. I was only able to resolve it thanks to @oryband's comment!
Given how common Ubuntu is, I think this might be worth noting in the README. Is this repo open for contributions?
I've fixed it on my own out of sheer luck: Apparently Pyright doesn't work with NodeJS installed via Snap even though both versions were NodeJS 18 https://snapcraft.io/install/node/ubuntu
I don't know why since there was no message indicating anything, I just tried uninstalling Node via Snap and installing via Nodesource and it worked. https://github.com/nodesource/distributions#debian-and-ubuntu-based-distributions
This should be 1) documented and 2) be debuggable. I've wasted so much time going in several directions until accidently stumbling upon this.
Man you are a savior. I also did the same and it worked for me. I dont know when there is no fix available I have seen this ubuntu snap conflict was the issue. I faced the issue some times ago and the same problem was there. Had to uninstall the snap version. Ubuntu or snap should fix this major issue.
Updating node fixed it! Thank you @oryband
Problem description
I'm using AstroNvim with Mason, and I have black, ruff, and pyright installed. For some reason Pyright isn't attached and is not working in neovim. It works via terminal. How can I debug the issue? I can't even see an error, lsp or mason logs don't show anything valuable.
Why do you think this is an issue with mason-lspconfig.nvim?
I think Mason doesn't install Pyright correctly.
Neovim version (>= 0.7)
Operating system/version
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
Steps to reproduce
Actual behavior
Pyright is not attached to buffer
Expected behavior
Pyright should be attached to python buffer
LspInfo