Closed
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.
❯ go version
go version go1.18.1 linux/amd64
- Run
gopls -v version
to get version of Gopls from the VS Code integrated terminal.
❯ gopls version
golang.org/x/tools/gopls v0.8.3
golang.org/x/tools/[email protected] h1:Mxm94ix8oSARQ6svioO6SxKEYWT/VCP54/448LOHzrk=
- Run
code -v
orcode-insiders -v
to get version of VS Code or VS Code Insiders.
❯ code --version
1.67.0
57fd6d0195bb9b9d1b49f6da5db789060795de47
x64
- Check your installed extensions to get the version of the VS Code Go extension
Name: Go
Id: golang.go
Description: Rich Go language support for Visual Studio Code
Version: 0.33.0
Publisher: Go Team at Google
VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=golang.Go
- Run Ctrl+Shift+P (Cmd+Shift+P on Mac OS) >
Go: Locate Configured Go Tools
command.
Checking configured tools....
GOBIN: undefined
toolsGopath:
gopath: /home/frezbo/work/golang
GOROOT: /home/frezbo/.local/share/aquaproj-aqua/pkgs/http/golang.org/dl/go1.18.1.linux-amd64.tar.gz/go
PATH: /home/frezbo/.local/share/aquaproj-aqua/bin:/home/frezbo/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/frezbo/work/golang/bin:/home/frezbo/.local/bin/node/bin
go: /home/frezbo/.local/share/aquaproj-aqua/bin/go: go version go1.18.1 linux/amd64
gotests: /home/frezbo/work/golang/bin/gotests (version: v1.6.0 built with go: go1.18.1)
gomodifytags: /home/frezbo/work/golang/bin/gomodifytags (version: v1.16.0 built with go: go1.18.1)
impl: /home/frezbo/work/golang/bin/impl (version: v1.1.0 built with go: go1.18.1)
goplay: /home/frezbo/work/golang/bin/goplay (version: v1.0.0 built with go: go1.18.1)
dlv: /home/frezbo/work/golang/bin/dlv (version: v1.8.3 built with go: go1.18.1)
staticcheck: /home/frezbo/work/golang/bin/staticcheck (version: v0.3.1 built with go: go1.18.1)
gopls: /home/frezbo/work/golang/bin/gopls (version: v0.8.3 built with go: go1.18.1)
go env
Workspace Folder (extensions): /home/frezbo/work/siderolabs/extensions
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/frezbo/.cache/go-build"
GOENV="/home/frezbo/.config/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GOMODCACHE="/home/frezbo/work/golang/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/home/frezbo/work/golang"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/home/frezbo/.local/share/aquaproj-aqua/pkgs/http/golang.org/dl/go1.18.1.linux-amd64.tar.gz/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/home/frezbo/.local/share/aquaproj-aqua/pkgs/http/golang.org/dl/go1.18.1.linux-amd64.tar.gz/go/pkg/tool/linux_amd64"
GOVCS=""
GOVERSION="go1.18.1"
GCCGO="gccgo"
GOAMD64="v1"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/dev/null"
GOWORK=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build1692870286=/tmp/go-build -gno-record-gcc-switches"
Steps to reproduce the behavior:
- Open a go project in vscode
- Try saving the go file with a change, vscode exits/crashes
Disabling the go-extension and cannot reproduce.