Created attachment 125171 [details] LSP configuration file with modified Go settings The LSP (Sourcegraph) client Kate currently uses for Go is deprecated; Go has an official client in its tools repository that's used by most editors now. See also the README for the Sourcegraph server: https://github.com/sourcegraph/go-langserver Link to the official LSP server, named gopls: https://github.com/golang/tools/tree/master/gopls I've changed the server for Go in the settings.json file. I also had to enable some workspace root configuration for the LSP server to work correctly. Here are the settings I've got now: "go": { "command": ["/home/wouter/.local/gobin/gopls"], "commandDebug": ["/home/wouter/.local/gobin/gopls", "-debug"], "rootIndicationFileNames": ["go.mod", "go.sum"], "url": "https://github.com/golang/tools/tree/master/gopls", "highlightingModeRegex": "^Go$" }, I will try to attach my modified settings file to this report in case that would turn out to be helpful. Thanks for working on LSP support!
I agree that gopls is the future, but your link below just states https://github.com/golang/tools/tree/master/gopls > It is currently in alpha, so it is not stable. On the other side, the "old" deprecated server is just in maintenance mode. Beside this, e.g. for Arch, you get just the old one packaged at all.
Gopls is the one used in govim and VSCode though; but they have some auto-update mechanism for updating gopls versions. You've got a point about distributions having to catch up. I like to keep my own tools up to date, but I guess a lot of people would be disappointed if it were not to work out of the box.
Can you please test and confirm if this issue is still occurring or if this bug report can be marked as resolved. I'm setting status to "needsinfo" pending your response, please change back to "reported" or "resolved" when you respond, thanks.
This report is still valid as of 2020-11-13 with Kate 20.08.3. As mentioned in its repo, the Sourcegraph LSP server is deprecated and should be switched to the official Go LSP server. It is true however that the official Go LSP server is taking quite some time to reach a stable version.
Fixed by https://invent.kde.org/utilities/kate/-/commit/c935ea2920c9058f52037b3511593d847607a0c3