-
-
Notifications
You must be signed in to change notification settings - Fork 147
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pyright doesn't attach or not working #273
Comments
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 Given how common Ubuntu is, I think this might be worth noting in the README. Is this repo open for contributions? |
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. |
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
The text was updated successfully, but these errors were encountered: