You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What version of Go, VS Code & VS Code Go extension are you using?
Run go version to get version of Go from the VS Code integrated terminal.
go version go1.16.4 windows/amd64
Run gopls -v version to get version of Gopls from the VS Code integrated terminal.
golang.org/x/tools/gopls v0.6.11
Run code -v or code-insiders -v to get version of VS Code or VS Code Insiders.
1.55.2
Check your installed extensions to get the version of the VS Code Go extension
0.24.2
Run Ctrl+Shift+P (Cmd+Shift+P on Mac OS) > Go: Locate Configured Go Tools command.
GOBIN: undefined
toolsGopath:
gopath: C:\Users\ICH\AppData\Local\go
GOROOT: C:\Program Files\go
PATH: C:\Program Files\go\bin;C:\Program Files\AdoptOpenJDK\jdk-15.0.1.9-hotspot\bin;C:\Program Files (x86)\Common Files\Intel\Shared Libraries\redist\intel64_win\compiler;C:\Program Files\Python38\Scripts\;C:\Program Files\Python38\;C:\Program Files\Oculus\Support\oculus-runtime;C:\Program Files\AdoptOpenJDK\jdk-13.0.1.9-hotspot\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Program Files\Microsoft VS Code\bin;C:\Program Files\dotnet\;c:\Program Files\mingw-w64\mingw64\bin\;c:\Portable\MinGW\msys\1.0\bin\;C:\Program Files\Git\cmd;C:\Program Files\PuTTY\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn\;C:\Program Files\nodejs\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\Docker\Docker\resources\bin;C:\ProgramData\DockerDesktop\version-bin;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\130\Tools\Binn\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files\Go\bin;C:\Users\ICH\AppData\Local\Microsoft\WindowsApps;C:\Users\ICH\go\bin;C:\Users\ICH\AppData\Local\GitHubDesktop\bin;C:\Users\ICH\AppData\Local\go\bin\;C:\Users\ICH\.dotnet\tools;C:\Program Files\heroku\bin;c:\Users\ICH\AppData\Local\flutter\bin\;C:\Users\ICH\AppData\Roaming\npm;C:\Users\ICH\AppData\Local\Microsoft\WindowsApps;C:\Users\ICH\.dotnet\tools;C:\Users\ICH\go\bin
gopkgs: C:\Users\ICH\AppData\Local\go\bin\gopkgs.exe installed
go-outline: C:\Users\ICH\AppData\Local\go\bin\go-outline.exe installed
gotests: C:\Users\ICH\AppData\Local\go\bin\gotests.exe installed
gomodifytags: C:\Users\ICH\AppData\Local\go\bin\gomodifytags.exe installed
impl: C:\Users\ICH\AppData\Local\go\bin\impl.exe installed
goplay: C:\Users\ICH\AppData\Local\go\bin\goplay.exe installed
dlv: C:\Users\ICH\AppData\Local\go\bin\dlv.exe installed
dlv-dap: C:\Users\ICH\AppData\Local\go\bin\dlv-dap.exe installed
staticcheck: C:\Users\ICH\AppData\Local\go\bin\staticcheck.exe installed
gopls: C:\Users\ICH\AppData\Local\go\bin\gopls.exe installed
go env
Workspace Folder (go-printpixel): c:\Users\ICH\Documents\_dev\cloud\go-printpixel
set GO111MODULE=
set GOARCH=amd64
set GOBIN=
set GOCACHE=C:\Users\ICH\AppData\Local\go-build
set GOENV=C:\Users\ICH\AppData\Roaming\go\env
set GOEXE=.exe
set GOFLAGS=
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOINSECURE=
set GOMODCACHE=C:\Users\ICH\AppData\Local\go\pkg\mod
set GONOPROXY=
set GONOSUMDB=
set GOOS=windows
set GOPATH=C:\Users\ICH\AppData\Local\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.16.4
set GCCGO=gccgo
set AR=ar
set CC=gcc
set CXX=g++
set CGO_ENABLED=1
set GOMOD=c:\Users\ICH\Documents\_dev\cloud\go-printpixel\go.mod
set CGO_CFLAGS=-g -O2
set CGO_CPPFLAGS=
set CGO_CXXFLAGS=-g -O2
set CGO_FFLAGS=-g -O2
set CGO_LDFLAGS=-g -O2
set PKG_CONFIG=pkg-config
set GOGCCFLAGS=-m64 -mthreads -fmessage-length=0 -fdebug-prefix-map=C:\Users\ICH\AppData\Local\Temp\go-build1040132361=/tmp/go-build -gno-record-gcc-switches
Describe the bug
I opened my go project folder with VSCode (was not running before) and got greeted by this error message:
Looks like a duplicate of golang/go#25830.
go 1.17 will address this, and I don't know if gopls has a plan to backport or build a hack to handle older go versions.
What version of Go, VS Code & VS Code Go extension are you using?
go version
to get version of Go from the VS Code integrated terminal.gopls -v version
to get version of Gopls from the VS Code integrated terminal.code -v
orcode-insiders -v
to get version of VS Code or VS Code Insiders.Go: Locate Configured Go Tools
command.Describe the bug
I opened my go project folder with VSCode (was not running before) and got greeted by this error message:
The "Problems" tab revealed more info:
Since the error seems to happen
go.mod
but it is not actually related.From my understanding this error happens when to conditions are met.
You can find a minimal example in the attached zip file.
example.zip
I would expect the project to load without an error ; )
Steps to reproduce the behavior:
example
folder from the extracted zip. example.zipScreenshots or recordings
Error in the status bar
The text was updated successfully, but these errors were encountered: