-
-
Notifications
You must be signed in to change notification settings - Fork 872
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
[Spacemacs.develop] [lsp-go] No autocompletion with lsp-go, autocompletion OK in plain go-mode #1344
Comments
Update to latest helm version. |
I just upgraded to |
@DennisMayr can make sure you have this: emacs-helm/helm#2265 ? |
Will check again and report back during the day. |
Just upgraded to |
I think that the lines listed above will workaround your issue. I will investigate - but based on the callstack seems like helm is miscalculating the candidate. (cc @thierryvolpiatto ). |
@DennisMayr is your go.mod file not at the project root, by any chance? I found that this confuses gopls and renders it inoperable for the project. If this is the case, you can use I just filed this bug report after I figured out how to solve the problem: #1978 |
That does alleviate the problem cause. Closing. |
Unfortunately my suggestion was rejected on the grounds that it was out of scope but over time I expect more and more people to file issues about this since the projectile root cannot be the LSP root in many cases of multilanguage projects. |
Autocomplete using
lsp-go
is not working: tab-complete mostly yields a [No matches] message on the modeline gutter, or a slow, garbled autocompletion.However, editing
go
files using regular, plaingo-mode
works OK with autocompletion, and much faster at it.To Reproduce
In Spacemacs
develop
, enable thego
layer with the following options:Expected behavior
Open any project's
main.go
file, try to add something, likeand try using tab to autocomplete parts of the code.
Autocompleting
http
at
ht
will yield ahhttpt
pattern instead of the expectedhttp
.I reported a similar problem last year, and the problem went away after some work on
gopls
by its maintainers, but this time the problem is "back & reloaded".Longer expected patterns will be ignored under a
[No matches]
message.Which Language Server did you use
lsp-go
(all
go
dependencies listed on the Spacemacsdevelop
readme have been properly installed and updated at the time of this bug report)OS
elementaryOS 5.0 / Ubuntu 18.04
Error callstack
Using the example above, when tab-autocompleting at
func test(w http.Respon
(forhttp.ResponseWriter
, line 25 of my test code), the following backtrace is shown by Emacs:compressed lsp log
Let me know what else I can provide to debug this further.
The text was updated successfully, but these errors were encountered: