-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Autocompletion for Go layer is broken for imported packages with latest version #13863
Comments
GOCODE IS not maintained anymore: Move to GOPLS or something better, |
@p554157atch there is no moving to gopls as spacemacs already has full LSP support aka also support for latest gopls. The reason why LSP is not the default for most layers is that it requires a separate setup step which not all users are willing to go through. If the alternative backend is not longer maintained we will shift the default to LSP like we did with the scala layer. Remember this is a communities project, there is no way we (maintainers) can keep track of outdated packages in the individual layers, this must be fixed or at least reported by people using this language. |
I have started changing the layer to be favouring gopls over go-mode by default. However I am unsure how much of the given tools are actually needed when LSP is activated. Can someone more familiar with go have a look and post a list of packages which are not longer working in this layer? |
I am through, the layer documentation now clearly explains which backends are available and deprecates I am closing this ticket for now. If more packages are found which must be replaced in that layer this issue should be reopened. |
Thank you! |
With latest version of Golang Gomodules becomes the default thing! sigh.
And GOCODE and many other outdated tools won't support this stuff.
The company-go package wast last updated 4 years ago:
https://github.com/emacsmirror/company-go/blob/master/company-go.el
It does not support:
https://github.com/golang/tools/blob/master/gopls/doc/user.md
Spacemacs should move to gopls or something better and remove support for old code that calls gocode that no longer works with any kind of imports.
See this issue:
nsf/gocode#537
The text was updated successfully, but these errors were encountered: