Skip to content
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

x/tools/gopls: add Kate editor to list of supported editors #69739

Closed
rubencaro opened this issue Oct 2, 2024 · 6 comments
Closed

x/tools/gopls: add Kate editor to list of supported editors #69739

rubencaro opened this issue Oct 2, 2024 · 6 comments
Labels
Documentation Issues describing a change to documentation. gopls Issues related to the Go language server, gopls. help wanted Tools This label describes issues relating to any tools in the x/tools repository.
Milestone

Comments

@rubencaro
Copy link

gopls version

All

go env

Not relevant.

What did you do?

I visited the "Editors" section of gopls README.
Here https://github.com/golang/tools/tree/master/gopls#editors

What did you see happen?

Kate was not listed as a supported editor.

What did you expect to see?

Kate listed as one of the supported editors, with a link to the main page https://kate-editor.org/

Kate is a venerable editor. I was using it for way over a decade now! It supports gopls (many LSP servers actually) out of the box since long ago, I don't even remember when anymore :). I use it daily together with gopls. I would totally expect it to be there in the list.

I actually noticed that it states "To get started with gopls, install an LSP plugin in your editor of choice."

This case would be a bit different, because there is no plugin needed. It just works out of the box. Maybe we should also change the text to something like "To get started with gopls, you may need to install an LSP plugin in your editor of choice."

Editor and settings

No further config needed. Works out of the box.

Logs

No response

@rubencaro rubencaro added gopls Issues related to the Go language server, gopls. Tools This label describes issues relating to any tools in the x/tools repository. labels Oct 2, 2024
@gopherbot gopherbot added this to the Unreleased milestone Oct 2, 2024
@gabyhelp
Copy link

gabyhelp commented Oct 2, 2024

Related Issues and Documentation

(Emoji vote if this was helpful or unhelpful; more detailed feedback welcome in this discussion.)

@seankhliao seankhliao changed the title x/tools/gopls: Add Kate editor to list of supported editors x/tools/gopls: add Kate editor to list of supported editors Oct 2, 2024
@hyangah
Copy link
Contributor

hyangah commented Oct 3, 2024

Feel free to send a PR following the guideline linked in the page.

If there is no extra configuration or plugin installation necessary, that's great!
On the other hand, I don't know why such editors need to be listed here if no special configuration or plugin is necessary. There are many modern editors that work for Go out of box (helix, zed, ... ) so the list will keep growing.

@golang/tools-team If we want to catalog all the editors, I think community-maintained wiki page makes more sense. https://go.dev/wiki/IDEsAndTextEditorPlugins

@hyangah hyangah added Documentation Issues describing a change to documentation. help wanted labels Oct 3, 2024
@gabyhelp
Copy link

gabyhelp commented Oct 3, 2024

Related Issues and Documentation

(Emoji vote if this was helpful or unhelpful; more detailed feedback welcome in this discussion.)

@rubencaro
Copy link
Author

Feel free to send a PR following the guideline linked in the page.

If there is no extra configuration or plugin installation necessary, that's great! On the other hand, I don't know why such editors need to be listed here if no special configuration or plugin is necessary. There are many modern editors that work for Go out of box (helix, zed, ... ) so the list will keep growing.

@golang/tools-team If we want to catalog all the editors, I think community-maintained wiki page makes more sense. https://go.dev/wiki/IDEsAndTextEditorPlugins

You are right, it makes no sense 😄
Closing.

@mstarodub
Copy link

Hey @rubencaro, are you sure Kate works out of the box with gopls?
I opened a go file (single file, outside of a project), and was greeted with this:

[Error] 2024/10/21 10:13:38 errors loading workspace: gopls was not able to find modules in your workspace.
When outside of GOPATH, gopls needs to know which modules you are working on.
You can fix this by opening your workspace to a folder inside a Go module, or
by using a go.work file to specify multiple modules.
See the documentation for more information on setting up your workspace:
https://github.com/golang/tools/blob/master/gopls/doc/workspace.md.

I understand the need for go.work (eg. when you have dependencies), but this commit suggests it should just work?
golang/tools@f01a4be

Would appreciate some help! Thank you.

@rubencaro
Copy link
Author

rubencaro commented Nov 18, 2024

@mstarodub it just works for me. This is for an isolated go file in /tmp:

image

This is using:
image

Default settings from Kate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Documentation Issues describing a change to documentation. gopls Issues related to the Go language server, gopls. help wanted Tools This label describes issues relating to any tools in the x/tools repository.
Projects
None yet
Development

No branches or pull requests

5 participants