joefitzgerald / autocomplete-go

An Atom autocomplete-plus provider for the Go language that uses gocode to provide suggestions.
Other
29 stars 3 forks source link

Nothing showed except `PANIC` when typing [Solved] #43

Closed shenwei356 closed 8 years ago

shenwei356 commented 8 years ago

Prerequisites

Nothing showed except PANIC when typing.

Now _I follow this issue template, and solved it, hope people can solve this if meeting the same problem_.

Output From go env

[go env output here]

Steps to Reproduce

  1. [First Step]
  2. [Second Step]
  3. [and so on...]

    Expected Behavior

[What you expected to happen]

Actual Behavior

[What actually happened]

joefitzgerald commented 8 years ago

Yeah, in general, the procedure for solving the panic issue (which will happen after every go upgrade is:

  1. Run gocode close
  2. Run go get -u github.com/nsf/gocode
jfesler commented 8 years ago

This bit me as well. Since we know the expected behavior.. is this something that can be trapped, and something useful as a popup given to the user?

In my case I blew away all of go - entirely - but did not run "gocode close".

joefitzgerald commented 8 years ago

That's a great idea. Offering to close and go get gocode after receiving a panic is a great way to deal with this.

vivace-io commented 7 years ago

Side Note:

For those in the future looking to solve this issue or similar issues - make sure you've ended the gocode process after updating the gocode package. Otherwise, the issue will persist until you reboot your setup or gocode exits on it's own.

joefitzgerald commented 7 years ago

gocode close is now run automatically when you run the golang:update-tools command (ctrl + alt + shift + g  u). Please run this first if you ever experience PANIC autocomplete results.