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
Check your installed extensions to get the version of the VS Code Go extension
v0.37.1
Run Ctrl+Shift+P (Cmd+Shift+P on Mac OS) > Go: Locate Configured Go Tools command.
go: /usr/local/bin/go: go version go1.19.4 darwin/amd64
gotests: /Users/scoot/go/bin/gotests (version: v1.6.0 built with go: go1.19.1)
gomodifytags: /Users/scoot/go/bin/gomodifytags (version: v1.16.0 built with go: go1.19.1)
impl: /Users/scoot/go/bin/impl (version: v1.1.0 built with go: go1.19.1)
goplay: /Users/scoot/go/bin/goplay (version: v1.0.0 built with go: go1.19.1)
dlv: /Users/scoot/go/bin/dlv (version: v1.9.1 built with go: go1.19.1)
staticcheck: /Users/scoot/go/bin/staticcheck (version: v0.3.3 built with go: go1.19.1)
gopls: /Users/scoot/go/bin/gopls (version: v0.11.0 built with go: go1.19.3)
The commented out value is treated as a doc comment (https://tip.golang.org/doc/comment) since it appears directly before a var, which is then included in the hover as additional information. If you don't want it to be included as a doc comment, you can add an empty new line between the comment and a int = 10.
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.Run
gopls -v version
to get version of Gopls from the VS Code integrated terminal.golang.org/x/tools/gopls v0.11.0
golang.org/x/tools/[email protected] h1:/nvKHdTtePQmrv9XN3gIUN9MOdUrKzO/dcqgbG6x8EY=
github.com/BurntSushi/[email protected] h1:9F2/+DoOYIOksmaJFPw1tGFy1eDnIJXg+UHjuD8lTak=
github.com/google/[email protected] h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38=
github.com/sergi/[email protected] h1:we8PVUC3FE2uYfodKH/nBHMSetSfHDR6scGdBi+erh0=
golang.org/x/[email protected] h1:QfTh0HpN6hlw6D3vu8DAwC8pBIwikq0AI1evdm+FksE=
golang.org/x/exp/[email protected] h1:fl8k2zg28yA23264d82M4dp+YlJ3ngDcpuB1bewkQi4=
golang.org/x/[email protected] h1:LapD9S96VoQRhi/GrNTqeBJFrUjs5UHCAtTlgwA5oZA=
golang.org/x/[email protected] h1:wsuoTGHzEhffawBOhz5CYhcrV4IdKZbEyZjBMuTp12o=
golang.org/x/[email protected] h1:ljd4t30dBnAvMZaQCevtY0xLLD0A+bRZXbgLMLU1F/A=
golang.org/x/[email protected] h1:BrVqGRd7+k1DiOgtnFvAkoQEWQvBc25ouMJM6429SFg=
golang.org/x/[email protected] h1:7/HkGkN/2ktghBCSRRgp31wAww4syfsW52tj7yirjWk=
golang.org/x/[email protected] h1:qptQiQwEpETwDiz85LKtChqif9xhVkAm8Nhxs0xnTww=
honnef.co/go/[email protected] h1:oDx7VAwstgpYpb3wv0oxiZlxY+foCpRAwY7Vk6XpAgA=
mvdan.cc/[email protected] h1:JVf4NN1mIpHogBj7ABpgOyZc65/UUOkKQFkoURsz4MM=
mvdan.cc/xurls/[email protected] h1:tzxjVAj+wSBmDcF6zBB7/myTy3gX9xvi8Tyr28AuQgc=
go: go1.19.3
Run
code -v
orcode-insiders -v
to get version of VS Code or VS Code Insiders.Commit: e2816fe719a4026ffa1ee0189dc89bdfdbafb164
Date: 2023-02-01T15:24:42.903Z
Electron: 19.1.9
Chromium: 102.0.5005.194
Node.js: 16.14.2
V8: 10.2.154.23-electron.0
OS: Darwin x64 22.2.0
Sandboxed: No
Check your installed extensions to get the version of the VS Code Go extension
Run Ctrl+Shift+P (Cmd+Shift+P on Mac OS) >
Go: Locate Configured Go Tools
command.gotests: /Users/scoot/go/bin/gotests (version: v1.6.0 built with go: go1.19.1)
gomodifytags: /Users/scoot/go/bin/gomodifytags (version: v1.16.0 built with go: go1.19.1)
impl: /Users/scoot/go/bin/impl (version: v1.1.0 built with go: go1.19.1)
goplay: /Users/scoot/go/bin/goplay (version: v1.0.0 built with go: go1.19.1)
dlv: /Users/scoot/go/bin/dlv (version: v1.9.1 built with go: go1.19.1)
staticcheck: /Users/scoot/go/bin/staticcheck (version: v0.3.3 built with go: go1.19.1)
gopls: /Users/scoot/go/bin/gopls (version: v0.11.0 built with go: go1.19.3)
go env
Workspace Folder (rtd): /Users/scoot/go/src/github.com/scootpl/rtd
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/scoot/Library/Caches/go-build"
GOENV="/Users/scoot/Library/Application Support/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOINSECURE=""
GOMODCACHE="/Users/scoot/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="darwin"
GOPATH="/Users/scoot/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/Cellar/go/1.19.4/libexec"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/Cellar/go/1.19.4/libexec/pkg/tool/darwin_amd64"
GOVCS=""
GOVERSION="go1.19.4"
GCCGO="gccgo"
GOAMD64="v1"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/Users/scoot/go/src/github.com/scootpl/rtd/go.mod"
GOWORK=""
CGO_CFLAGS="-mmacosx-version-min=11.2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -arch x86_64 -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/vz/n0zz1ht53bg3xz7njjzpjyhr0000gp/T/go-build1704131766=/tmp/go-build -gno-record-gcc-switches -fno-common"
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"]
orgopls
prefixes."go.gopath": "~/go",
Describe the bug
Invalid value when you point the mouse at a variable.
Steps to reproduce the behavior:
Screenshots or recordings
If applicable, add screenshots or recordings to help explain your problem.
The text was updated successfully, but these errors were encountered: