-
Notifications
You must be signed in to change notification settings - Fork 645
After upgrade GO to 1.7 version, the Code just won't show intellisense for a variable #441
Comments
same issue here. fmt. doesn't work, fmt.Println( works. |
Thanks @lukehoban |
On MacOS, I had a gocode daemon running, I killed it / gocode close, re-opened studio and everything worked. |
Recipe works that's nice, but is it possible to include this gocode restart and update as part of new vscode-go? Or may be in documentation? At least this should be part of Release notes. |
Recipe worked. Thank you |
@tracer0tong I've updated the README with a note. Unfortunately, I'm not sure it's safe/wise for the extension to restart the gocode daemon everything it launches, as that would have performance implications and potentially interact poorly with other tools that use gocode. |
I get PANIC PANIC. I removed all tools, then installed all tools but it did not help |
@hinst did you run |
Fedora: Only I need to do |
|
gocode will hog up my CPU every ten minutes or so, making my laptop sound like an airplane is about to take off. Having to run |
@hilljgo Please search all previous issues to see if one is similar to your own problem (creating a new issue if not) instead of posting a completely irrelevant comment under this issue where it'll only get lost. |
gocode close and go get -u github.com/nsf/gocode works |
I've tried Running Windows 10 64 bit |
I was having this issue and I ran these commands |
Not working for me as well. I tried everything from above (including deleting all directories in my src folder and redownloading all the dependencies) but it's still not working. It's just showing "PANIC" instead of the hints. Windows 10 64-bit, Go 1.7 Edit: |
if not work |
Closing this issue, as we have a workaround |
I'm having an issue very similar to this except code completion works, but after a time vscode becomes unusable because there are godef processes hogging the CPU. Killing them frees the cpu. OSX Sierra, 1.7.1 |
@sfrooster See #541 and #503 |
This seams to happen after every GO update go through the steps to kill the On Sat, Nov 5, 2016, 5:26 PM Ramya Rao notifications@github.com wrote:
|
For me this is how it works. Update the go version to Go 1.7.4 and then get latest version of all the tools. and Then restart the machine. It will work. |
thx |
Neither of the above solution has worked for me: OS X El Capitan 10.11.6 (15G1217) |
@gevgev Are rest of the features of the Go extension working as expected? |
@ramya-rao-a All other features, including all pop-ups, showing types of variable or even values of variables during debugging on mouse-hover work just fine. The intelligence on typing (i.e. One thing I suspect is that with the latest Go lang Mac OS installation PKG the
Output of go env:
|
@gevgev I currently use go1.7.3, and I don't see the need to use sudo. Will update to go1.7.5 and get back. Can you try running |
Using Test file:
command line output (expecting suggestions at cursor pos 47):
Per my understanding it should have suggested fmt.Print..Printf.. Println.. etc., but looks like the only suggestion gocode has is just 'make()' function, otherwise it is either 'Nothing to complete', or 'Panic' Hope this helps. |
I have worked with nsf (author of gocode )on this issue, we got that resolved:
Removing the old instance and restarting gocode fixed it, everything works just fine now, including command line:
Thank you!!! |
yay! glad you are unblocked @gevgev and thanks for sharing your solution. |
I can not use the function of autocomplete in VSCode Insider 1.11.0. Did I miss something? I have used the above solution, but it still doesn't have any suggestion.
If I use Code 1.10.1, it will be work. The following is my environment VSCode Version: Code Insider 1.11.0 I use the same step to try it, but it still got error. choose GOLANG environment |
@freedomsean So on the same machine, autocomplete works fine in the stable build, but not insiders? |
@ramya-rao-a Yes, It works fine in the stable build, but not insiders. Do I need to submit this issue to VSCode project? |
Update: I can repro this |
Also check if you have copies of gocode.exe both in $GOROOT/bin (or %GOROOT%\bin on Windows) and $GOPATH/bin (%GOPATH%\bin) and be sure to remove all old versions before doing |
Perfect. I had the exact same problem on windows 7 Ultimate. gocode close and go get -u github.com/nsf/gocode fixed it for me. Thanks guys. Saved me huge headaches. |
|
Happened today, in a strange way. How?It did not work for a project (directory, opened with I have:
My guess: This happens when number of candidates are more than one (in a sample case
@ramya-rao-a Since this comes up from time to time, I guessed a comment would be more helpful than opening an issue, especially that I just have some guess and can not reproduce this, reliably. Thanks! |
@ramya-rao-a I've managed to reproduce it reliably. When adding this comment with unicodes:
It stops working and when this comment gets removed, it starts working. |
@dc0d I'd still prefer opening a new issue than a comment here. Rest of this issue either needed a restart of gocode or the issue with VS Code insiders. Both of which are unrelated to the detailed analysis you have done. The multiple candidates is not an issue. It just means that there are multiple completion items. I've logged #1431 to track the issue with unicode. |
Moved from microsoft/vscode#10639
From @Dmdv
Steps to Reproduce:
The text was updated successfully, but these errors were encountered: