nsf / gocode

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

Autocomplete doesn't seem to work for imports #457

Closed ekr closed 7 years ago

ekr commented 7 years ago

Platform: MacOS Sierra Emacs 25.2 Company-mode Go 1.8.3.

Autocomplete works great for the local package but doesn't seem to work for anything outside the local package, whether system stuff (e.g., fmt) or other packages. Any advice on how to debug?

ekr commented 7 years ago

Update: I'm not sure what I did, but now it seems to work for local packages but not system ones.

ekr commented 7 years ago

Mystery solved. When I upgraded go my GOPATH got screwed up and nothing works. sorry fo the inconvenience.