Closed shenwei356 closed 8 years ago
Yeah, in general, the procedure for solving the panic issue (which will happen after every go upgrade is:
gocode close
go get -u github.com/nsf/gocode
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".
That's a great idea. Offering to close and go get gocode after receiving a panic is a great way to deal with this.
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.
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.
Prerequisites
go get -u github.com/nsf/gocode
(emphasis on the-u
flag)?atom .
from the terminal in your project's directory?[x] Have you verified the output from
go env
is correct? If it is, please include the output in this issue.[x] Are you running the latest version of Atom? Have you tried Atom Beta, which can be run side-by-side with Atom Stable?
gocode
in server debug mode? In your terminal:gocode close
gocode -s -debug
Description
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
Expected Behavior
[What you expected to happen]
Actual Behavior
[What actually happened]