-
Notifications
You must be signed in to change notification settings - Fork 18k
x/tools/gopls: windows cpu use 100% #66945
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
Comments
Hi, I would love to get to the bottom of this, but we need more information, which may take a bit of back and forth. In general, the go commands run by VS Code or gopls should be short-lived, and should not be invoked on every save. Those go commands could be started by gopls to list the workspace. Or they could perhaps be started either directly or indirectly by VS Code. Can you share the command line arguments or parent processes of those go commands, perhaps by using process explorer (https://learn.microsoft.com/en-us/sysinternals/downloads/process-explorer) Does this reproduce with just a simple workspace folder with, for example, just a main.go file? |
Without more information, I don't think this is directly actionable. Bumping to the backlog. |
Timed out in state WaitingForInfo. Closing. (I am just a bot, though. Please speak up if this is a mistake or you have the requested information.) |
Yes, this is 100% reproducible on my computer, for example: after I restart my computer, all the files in the go-build directory in the golang directory installed on my computer will be updated once, so that I can't do anything after my computer is turned on. If I save the file in some GO file, format the code, the CPU is like this But I don't have this problem with the angular development files |
gopls version
0.15.3
go env
What did you do?
I use windows to develop go programs, recently found that my computer is getting slower and slower, when I open vscode, I don't run go run main.go, I just write go code in vscode, when I save the go file, my computer's cpu will suddenly rise to 100%, I don't know what's going on, I can only see that go.exe occupies a very high cpu,
What did you see happen?
when I save the go file, my computer's cpu will suddenly rise to 100%,as shown below
I wonder why: my computer's CPU spikes to 100% when I don't start the go run main.go program, just writing a static go file
What did you expect to see?
I wish I was writing a go file on window, the cpu wouldn't go up to 100%
Editor and settings
Logs
No response
The text was updated successfully, but these errors were encountered: