nsf / gocode

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

panic: rpc: can't find service RPC.RPC #520

Closed fa93hws closed 6 years ago

fa93hws commented 6 years ago

I got error panic: rpc: can't find service RPC.RPC when I type command gocode status, gocode set or gocode close

Console shows that the error is in rpc.go:86

fa93hws commented 6 years ago

Ok I restarted my computer and everything works fine now

antaln commented 6 years ago

Happened to me after upgrade via vim-go's :GoUpdateBinaries, while gocode was still running. gocode close also failed with same error. I'm guessing it was an backward-incompatible change in rpc. Killing the gocode process via kill <pid> resolved the issue - once vim started new gocode process, rpc worked fine.