Cudatext: Golang LSP

Created on 24 Apr 2021  路  9Comments  路  Source: Alexey-T/CudaText

Hello,

I can not make the Golang LSP (gopls) work. I am on Linux (Arch Linux).

Here is my lsp_go.json:

{
  "lexers": {
    "Go": "go",
    "RenamedGoLexer": "go"
  },
  "cmd_windows": ["gopls"],
  "cmd_macos": ["gopls"],
  "cmd_unix": ["gopls"]
}

The gopls daemon is started successfully.
Any command send a "LSP: Go unsupported msg: Response error!...".
Any idea ?

Thanks.

Most helpful comment

The signs are not very clear, but it seems like this server requires workspace/configuration, the documentation for which is beyond minimal :)

Will investigate this further tomorrow

All 9 comments

@halfbrained

The signs are not very clear, but it seems like this server requires workspace/configuration, the documentation for which is beyond minimal :)

Will investigate this further tomorrow

Got it working, some cleanup left to do, will commit fixed version tomorrow.

Thanks a lot !

@tbellembois please check the new version, should behave now

Ok I check it right now. Thanks.

I have tried successfully basic commands: completion, go to definition, hover. How can we run additional commands such as rename ?

AFAIR 'rename' is not supported,until you see the menu item "LSP client / Rename".

Ok thanks.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rhinolophus picture rhinolophus  路  5Comments

JairoMartinezA picture JairoMartinezA  路  7Comments

JairoMartinezA picture JairoMartinezA  路  5Comments

Alexey-T picture Alexey-T  路  4Comments

JairoMartinezA picture JairoMartinezA  路  5Comments