nsf / gocode

An autocompletion daemon for the Go programming language
MIT License
5.01k stars 657 forks source link

company-go Company: backend company-go error "Wrong type argument: stringp, nil" with args (candidates ) #466

Closed xanderio closed 7 years ago

xanderio commented 7 years ago

emacs version: GNU Emacs 25.2.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.22.16) of 2017-07-16 company version: 0.9.4

kosh04 commented 7 years ago

I also got the same problem.

Try update gocode command (go get -u github.com/nsf/gocode)

xanderio commented 7 years ago

That fixed the issue

mhusmann commented 7 years ago

Thanks kosh04. I updated gocode now everything works fine again

ghost commented 6 years ago

i meet this error also, as @kosh04 said, update gocode is not suit me. my emacs version is GNU Emacs 26.1 go version go1.10.3 darwin/amd64

albttx commented 6 years ago

Updated gocode did not fix the issue, i'm with the same version as @chunzhouyu (exept go 1.11)

kostspielig commented 5 years ago

This comment from another issue did the trick for me:

After updating gocode, don't forget to kill the server which might be running: gocode close. New one will start automatically. Also make sure there is only one gocode binary on your PATH: which -a gocode.