-
Notifications
You must be signed in to change notification settings - Fork 645
Extension can't do IntelliSense, it blocks new procs, and it spikes CPU #3208
Comments
@willfaught thanks for the report.
Thanks! |
I don't know how to use an old version of an extension. Can you point me to a link? When I look at Activity Monitor (macOS) while the problem happens, I see about 125 pgrep processes under a "Code Helper (Renderer)" process (which spiked up to 151% this time). There's also a godef process. Note that since I can't create new processes, I can't run
Here's what
Sometimes the pgrep processes disappear (and I can create processes again), but I can trigger them again reliably by (restarting Extension Host if necessary and then) hovering over Go type identifiers to trigger IntelliSense. Sorry, no screenshots, since it seems to break the macOS screenshot keyboard shortcuts. The Running Extensions window says the Go extension is "Unresponsive" and has a "Performance Issue", with a caution icon next to it. Extension profile: extension-CPU-20200429T022132.615Z.cpuprofile.txt Renderer profile: renderer-CPU-20200428T192654.cpuprofile.txt Note that the "Extension Host" crashes occasionally and it gives me a button to restart it. |
@willfaught thanks for capturing the profile data. Indeed it's showing it uses a lot of CPUs spawning (probably Have you tried the language server ( |
It repros on v14.0, but not v13.1. I haven't tried gopls. I will eventually once it's stable and the community (and vscode-go) switches to it as the default. |
@willfaught I went over the changelog for version 0.14.0, but couldnt find anything that would cause this. Please run the command |
@willfaught Noticed you were also on mac, and I wonder if you were also experiencing the same issue caused by golang/vscode-go#90 (comment). |
Given that we believe the issue can be fixed through a work-around (and will have a proper fix in the Go Nightly extension soon), I'm going to close this. @willfaught, please open a new issue in the https://github.com/golang/vscode-go repository if you are still encountering this. |
What version of Go, VS Code & VS Code Go extension are you using?
go version
to get version of Gocode -v
orcode-insiders -v
to get version of VS Code or VS Code Insidersff915844119ce9485abfe8aa9076ec76b5300ddd
x64
go env GOOS GOARCH
to get the operating system and processor architecture detailsamd64
Share the Go related settings you have added/edited
Run
Preferences: Open Settings (JSON)
command to open your settings.json file.Share all the settings with the
go.
or["go"]
prefixes.Describe the bug
On macOS, running the extension seems to prevent new processes from being created. When I try to open new terminals, I see:
and the "Code Helper (Renderer)" process CPU % spikes to 100%+ (usually 102-120%). Also, the Go extension stops being able to display info about Go types when you hover over them (it just says "Loading..."), and Cmd-clicking type identifiers doesn't work.
code --disable-extension ms-vscode.go
fixes the terminal and CPU % problem, although obviously the IntelliSense features don't work for Go code too, as expected.Steps to reproduce the behavior:
The text was updated successfully, but these errors were encountered: