Error on gopls start
yznts opened this issue · comments
Yurii Zinets commented
Yurii Zinets commented
Jefferson González commented
I think the issue is you are adding settings that are specifically for the lua language server:
lspconfig.gopls.setup {
command = {
"gopls"
},
-- settings = { -- these settings are for the lua language server not gopls
-- Lua = {
-- diagnostics = {
-- enable = false
-- }
-- }
-- },
verbose = true
}
A simple setup call lspconfig.gopls.setup()
should be enough to enable the go language server.
Yurii Zinets commented
Jefferson González commented
Could be that your gopls
is not the direct binary but a bash/shell script that points to it which makes the lsp not properly detect the real process id of running lsp server. Try from terminal with which gopls
to see the path of invoked gopls binary and then confirm it is the real gopls binary and not a shell script invoking it.
Yurii Zinets commented
Calvin lin commented
pylsp and pyright meets the same error