go-plus icon indicating copy to clipboard operation
go-plus copied to clipboard

WIP: support Go language server (gopls)

Open joefitzgerald opened this issue 6 years ago • 4 comments

WIP

joefitzgerald avatar Jun 04 '19 17:06 joefitzgerald

Oh yes! Is there any help that you guys need with getting gopls rolled in? Ever since Go modules, dealing with autocompletion has been a nightmare. I'm pumped.

tekkamanendless avatar Feb 05 '20 18:02 tekkamanendless

Not actively working this, but if somebody wants to pick it up feel free.

The auto-languageclient package gets you almost all of the way there. The challenge you'll run into is that atom-ide-ui is no longer maintained, so if the UI doesn't support something, you've got to try to resurrect a dead project or start over.

Alternatively, you could try https://github.com/MordFustang21/ide-gopls.

zmb3 avatar Feb 05 '20 21:02 zmb3

I would think (perhaps naively) that it should just be a replacement operation (replace the call to gocode with the equivalent call to gopls). Since we're not trying to add anything new or fancy, tweaking atom-ide-ui shouldn't be necessary, right?

Do you have any notes on what doesn't work with this change so far? I'll try to pull it down when I get some down time on this project.

tekkamanendless avatar Feb 10 '20 15:02 tekkamanendless

You want to actually use the auto language client package, as opposed to replacing the gocode call only. This will register to provide more than just autocomplete from gopls (lint rules, go to definition, etc)

zmb3 avatar Feb 10 '20 17:02 zmb3