-
Notifications
You must be signed in to change notification settings - Fork 645
High CPU when go to definition in wrong code #2084
Comments
one more note: when i change the code so that it compiles, everything works. and this also "repairs"
and jump to the definition of |
@ulrichSchreiner Thanks for reporting.
|
hi, go1.11.2 on linux:
when creating a simple programm
doing a CTRL-CLICK on the first after commenting out the last line again and do a CTRL-CLICK on the first the "Developer -> Process Explorer" does not show any high CPU usage. but the linux
|
it only happens when there is a bug in the code. here
everything is fine. but here:
the "Go to definition" (F12) on the |
I've got the same sympthon; very high CPU usage that does not come back down. In task manager it is visible that guru.exe is being called and eats up the CPU% and memory. So, 75% CPU usage and keeps on going. The action was Find-All-References (Shift-Alt-F12) or Peek-References (Shift-F12) Is there any reason guru.exe does not come back with results or is it continuously restarted by the vscode-go module? -edit- Might this be related to a very large vendor folder, that it simply takes a very long time for guru to process all the *.go files in the project? If yes, might Find-all-references be limited to certain packages as per the command line of guru.exe option "scope packages"? See guru command line params below.
|
@ulrichSchreiner Apologies for the very late response, but I am able to see the same issue as you when I change This was caused by
@MelleKoning Since this issue originally was about the Go to definition feature, I have moved your concern to a new issue. See #2347 |
hi,
i regularly use F12 or STRG+CLICK to jump to a reference. i do not know since when, but when i do this in "wrong" code all of my 4 cpu's jump to high usage, and the top 3 performers is "code"
and i'm doing nothing in vscode. only wait for it. my go-code looks like this:
the marked line was inserted with "STRG+SPACE" and this is completly correct. but it does not compile, as it is not correct code. now i wanted to jump to the definition of "GetString" to see the exact definition of the parameters and this does not work (ok i can live with this as the code does not compile). but now my CPU's go wild and never goes down again until i restart vscode.
and no, there is no
guru
or any other background process which eats lot of cpu/memory. only thecode
process.as described, i can wait 10 minutes or an hour ... the cpu never comes down again.
Version: 1.28.2
Commit: 7f3ce96ff4729c91352ae6def877e59c561f4850
Datum: 2018-10-17T00:20:56.183Z
Electron: 2.0.9
Chrome: 61.0.3163.100
Node.js: 8.9.3
V8: 6.1.534.41
Architektur: x64
vscode-go: 0.6.93
The text was updated successfully, but these errors were encountered: