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

Add support for the official Go language server, gopls (formerly golsp) #2179

Closed
gbrlsnchs opened this issue Jan 3, 2019 · 6 comments
Closed
Labels
LSP Any issue relating to LSP or tsserver new tool Support for new linters, fixers, etc.

Comments

@gbrlsnchs
Copy link

gbrlsnchs commented Jan 3, 2019

Name: gopls (formerly golsp)
URL: https://godoc.org/golang.org/x/tools/cmd/gopls and https://github.com/golang/go/wiki/gopls

The server is minimally functional by now and is the official language server. It seems to work simply by running gopls serve.

@w0rp w0rp added new tool Support for new linters, fixers, etc. LSP Any issue relating to LSP or tsserver labels Jan 3, 2019
@arp242
Copy link
Contributor

arp242 commented Jan 13, 2019

Note that it is not recommended to use golsp at this point, as it's a very new project under active development. Adding support to ALE before it's stable would probably not be a good idea.

@w0rp
Copy link
Member

w0rp commented Jan 14, 2019

It can be a good idea, as it will get people to start trying it, and finding bugs.

@tmc
Copy link
Contributor

tmc commented Feb 25, 2019

note that the official language server has been renamed to "gopls"

@gbrlsnchs gbrlsnchs changed the title Add support for the official Go language server (golsp) Add support for the official Go language server, gopls (formerly golsp) Feb 25, 2019
@diegs
Copy link

diegs commented Mar 19, 2019

FWIW if you want to test it out, enabling the bingo linter and setting the following appears to work:

let g:ale_go_bingo_executable = 'gopls'

I'm getting completion, go to def, etc. and it is working really well (just installed the latest gopls). Initial feeling is that it's possibly better/faster/more reliable than bingo or go-langserver already.

@w0rp w0rp closed this as completed in 2e8c808 Apr 10, 2019
@w0rp
Copy link
Member

w0rp commented Apr 10, 2019

I have added this now by just copying the bingo linter to a gopls linter with some find and replace. Give it a try.

@stupid-genius
Copy link

@w0rp Can you explain what you did? I don't understand what you mean.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
LSP Any issue relating to LSP or tsserver new tool Support for new linters, fixers, etc.
Projects
None yet
Development

No branches or pull requests

6 participants