-
Notifications
You must be signed in to change notification settings - Fork 645
go1.7rc6 darwin/amd64 autocompletion panic #425
Comments
I am using a local build in debug mode and found what I think is the root cause, gocode is hanging when asking for autocompletion:
Doesn't return |
This looks suspiciously similar to #322 which was fixed. However nsf/gocode#305 seems to indicate gocode doesn't yet support 1.7 With 1.7 out in a few days, this might cause some serious issues for VSCode users. |
Good news everyone, I found the root cause. The problem is that I updated Go to 1.7 but Gocode was running its daemon in the background and wasn't aware of the change of version. Gocode uses a server/client architecture and VSCode was trying to communicate with the server but the request was hanging. Restarting gocode solved the problem and everything is great again! tl;dr: restart gocode If you encounter this issue, in your terminal, type: Then restart Code and everything should be working well again. |
'gocode' is not recognized as an internal or external command, |
Actually only updating gocode worked for me (restarting didn't) |
If use windows cd gocode close example: cd D:\Development\Go\Lib\bin |
I tried to update to the latest and hopefully final RC of Go 1.7 and I noticed that autocompletion broke.
I know that the binary output changed in 1.7 and I updated all the go tools vscode reported using. The README says gocode version is used for autocompletion and I wonder if the API changed?
The extension panics but I can't find any specific errors or trace anywhere.
The text was updated successfully, but these errors were encountered: