Replies: 1 comment
-
The language server does not accept command-line arguments. Use the LSP JSON interface to communicate with the language server once it is launched. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
After installing Pyright via Mason, :LspInfo shows version: ? (Failed to get version). Directly running pyright-langserver --version returns an error about missing communication protocol arguments.
I tried solutions below but all failed
Solution 1: Explicitly specify --stdio in LSP config:
require("lspconfig").pyright.setup({
cmd = { "pyright-langserver", "--stdio" },
})
Solution 2: Use Pyright CLI with --lsp:
require("lspconfig").pyright.setup({
cmd = { "pyright", "--lsp" },
})
and when I input ~/.local/share/nvim/mason/bin/pyright-langserver --version in terminal , error comes
Error: Connection input stream is not set. Use arguments of createConnection...
however , when I input ~/.local/share/nvim/mason/bin/pyright --version,right version comes
pyright 1.1.393
what should i do to make the version can be correctly detected?
it seems every module works well except he version
Beta Was this translation helpful? Give feedback.
All reactions