Description
What version of Go, VS Code & VS Code Go extension are you using?
Version Information
-
Run
go version
to get version of Go from the VS Code integrated terminal.- <1.20.2>
-
Run
gopls -v version
to get version of Gopls from the VS Code integrated terminal.- <0.11.0>
-
Run
code -v
orcode-insiders -v
to get version of VS Code or VS Code Insiders.- <1.76.2>
-
Check your installed extensions to get the version of the VS Code Go extension
- <0.38.0>
-
Run Ctrl+Shift+P (Cmd+Shift+P on Mac OS) >
Go: Locate Configured Go Tools
command.- <
- Checking configured tools....
GOBIN: undefined
toolsGopath:
gopath: C:\Users\sanch\Home\Projects\Go
GOROOT: C:\Program Files\Go
PATH: C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Windows\System32\OpenSSH;C:\Program Files\Git\cmd;C:\Users\sanch\Home\Projects\Go\bin;;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Program Files\nodejs;C:\Program Files\Go\bin;%PNPM_HOME%;C:\Users\sanch\AppData\Local\Microsoft\WindowsApps;C:\Program Files\heroku\bin;C:\Users\sanch\AppData\Roaming\npm;C:\Users\sanch\go\bin;C:\Program Files\go-comment-splitter;C:\Users\sanch\AppData\Local\Programs\Microsoft VS Code\bin
go: C:\Program Files\Go\bin\go.exe: go version go1.20.2 windows/amd64
gotests: C:\Users\sanch\Home\Projects\Go\bin\gotests.exe (version: v1.6.0 built with go: go1.20.2)
gomodifytags: C:\Users\sanch\Home\Projects\Go\bin\gomodifytags.exe (version: v1.16.0 built with go: go1.20.2)
impl: C:\Users\sanch\Home\Projects\Go\bin\impl.exe (version: v1.1.0 built with go: go1.20.2)
goplay: C:\Users\sanch\Home\Projects\Go\bin\goplay.exe (version: v1.0.0 built with go: go1.20.2)
dlv: C:\Users\sanch\Home\Projects\Go\bin\dlv.exe (version: v1.20.1 built with go: go1.20.2)
staticcheck: C:\Users\sanch\Home\Projects\Go\bin\staticcheck.exe (version: v0.4.2 built with go: go1.20.2)
gopls: C:\Users\sanch\Home\Projects\Go\bin\gopls.exe (version: v0.11.0 built with go: go1.20.2)
go env
Workspace Folder (Katze): c:\Users\sanch\home\dev\projects\servers\Go\Katze
set GO111MODULE=
set GOARCH=amd64
set GOBIN=
set GOCACHE=C:\Users\sanch\AppData\Local\go-build
set GOENV=C:\Users\sanch\AppData\Roaming\go\env
set GOEXE=.exe
set GOEXPERIMENT=
set GOFLAGS=
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOINSECURE=
set GOMODCACHE=C:\Users\sanch\Home\Projects\Go\pkg\mod
set GONOPROXY=
set GONOSUMDB=
set GOOS=windows
set GOPATH=C:\Users\sanch\Home\Projects\Go
set GOPRIVATE=
set GOPROXY=https://proxy.golang.org,direct
set GOROOT=C:\Program Files\Go
set GOSUMDB=sum.golang.org
set GOTMPDIR=
set GOTOOLDIR=C:\Program Files\Go\pkg\tool\windows_amd64
set GOVCS=
set GOVERSION=go1.20.2
set GCCGO=gccgo
set GOAMD64=v1
set AR=ar
set CC=gcc
set CXX=g++
set CGO_ENABLED=0
set GOMOD=c:\Users\sanch\home\dev\projects\servers\Go\Katze\go.mod
set GOWORK=
set CGO_CFLAGS=-O2 -g
set CGO_CPPFLAGS=
set CGO_CXXFLAGS=-O2 -g
set CGO_FFLAGS=-O2 -g
set CGO_LDFLAGS=-O2 -g
set PKG_CONFIG=pkg-config
set GOGCCFLAGS=-m64 -fno-caret-diagnostics -Qunused-arguments -Wl,--no-gc-sections -fmessage-length=0 -fdebug-prefix-map=C:\Users\sanch\AppData\Local\Temp\go-build2914934687=/tmp/go-build -gno-record-gcc-switches
- >
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"]
or gopls
prefixes.
Describe the bug
When I save a Go file, Antimalware Service executable consumes all the system resources, I came to the conclusion that the error was caused by the extension because when I deactivate it, the error disappears and when I activate it, it happens again.A clear and concise
I have few extensions and I had to deactivate them all and activate them one by one, so I came to know that it was the go extension that caused the error.
Steps to reproduce the behavior:
- Go to 'Opens a vscode and task manager window.'
- Click on 'Create a go file, place contents in it and click save, without taking your eyes off the Antimalware Service Executable process. '
- See error