New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
x/tools/gopls: autocomplete not working as expected #32654
Comments
So interestingly enough, there are no errors in your log. There is only one case where the |
I can't. I illustrated 2 things in below. One is I also captured logs during this GIF recording. I've attached both below. Let me know if you need anything else. |
I see various errors like An easy way to check if this is happening:
If they don't match, then things have gotten out of sync. If they do match, I am out of ideas. |
I'm having the exact same issue as this user. For me it happens from the very beginning, so I was able to capture the log at a minimal size. Log File: If I run gopls for awhile, I sometimes am able to see this error pop up:
Sadly, the Cache does look to be exactly correct. It updates with every keystroke to the correct contents. Go INFO:
Is there any other info I can provide to help debug this issue? EDIT: Okay the problem just went away when I enabled GO111MODULES=on . Originally I had to disable the modules because of gopls taking up over 4GB of memory on an older version. I'll operate with the modules being enabled for awhile and see if the issue props up again. But issues with modules disabled could be a consistent setting between myself and the original poster. |
@gencer: Are you still seeing this issue on the latest version of |
when using without |
Can you share the full logs that you see in |
@stamblerre, sorry for late reply. See, I am trying to reproduce same behavior on my project since 2 days that uses I am constantly watching and will record both GIF and a log for this when i face with same issue. But it seems fixed here. Dunno why i got wrong behavior in the first place. Perhaps, something was different at that time but as i said, it just works at the moment. Thank you so much for your help & fast fixes for both of my issues! |
Glad that this has been resolved! Thanks for your patience. |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?Windows 10 1903 x64 uses Ryzen 3 processor.
go env
OutputWhat did you do?
Trying to see members of an object or class. See below GIF animations.
What did you expect to see?
I would like to see members of
FileInfo
orcli
.What did you see instead?
Sometimes I get intellisense work but mostly it behaves like that variable/object doesn't exists at all. So, no auto-complete.
Autocomplete issue:
req
barely completes. Above works below not. Most of my code is like this.Also few samples:
and...
Here is logfile: logfile.log
Logfile is big, i couldn't paste here. (max. allowed size exceeded).
This logfile is belongs to
info.
(info balya.FileInfo)
sample above GIF. I should seeFileInfo
's members however, eveninfo
variable is not auto-completed.For now, I installed from a commit that committed on May 24, 2019. Which works perfectly.
The text was updated successfully, but these errors were encountered: