-
Notifications
You must be signed in to change notification settings - Fork 819
Closed
Labels
Milestone
Description
Version Information
- Distribution:
- Fedora Linux 38 and 39 (I upgraded to 39 in an attempt to troubleshoot the issue myself)
- EDIT: By now, reproduced on two different machines running Fedora Linux - Installation:
- VS Code installation via rpm as instructed on the VS code website - (Optionally) other extensions (EDIT: By now reproduced the bug without extensions):
- C/C++, C/C++ Extension Pack, C/C++ Themes
- CMake, CMake Tools
- GitHub Copilot, GitHub Copilot Chat
- (Disabled: VSCode Neovim) - Run
go version
to get version of Go from the VS Code integrated terminal.- go version go1.21.7 linux/amd64
- Run
gopls -v version
to get version of Gopls from the VS Code integrated terminal.golang.org/x/tools/gopls master@go: go1.21.0
- Run
code -v
orcode-insiders -v
to get version of VS Code or VS Code Insiders.
-1.87.1 1e790d77f81672c49be070e04474901747115651 x64
- Check your installed extensions to get the version of the VS Code Go extension
v0.41.1
- Run Ctrl+Shift+P (Cmd+Shift+P on Mac OS) >
Go: Locate Configured Go Tools
command.
# Tools Configuration
## Environment
GOBIN: undefined
toolsGopath:
gopath: /home/benjamin/go
GOROOT: /usr/lib/golang
PATH: /usr/lib/golang/bin:/home/benjamin/.elan/bin:/home/benjamin/.elan/bin:/home/benjamin/.elan/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/home/benjamin/.cargo/bin/:/home/benjamin/.local/bin:/home/benjamin/programms/zig-linux-x86_64-0.11.0-dev.3786+8dcb4a3dc
PATH (vscode launched with): /home/benjamin/.elan/bin:/home/benjamin/.elan/bin:/home/benjamin/.elan/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/home/benjamin/.cargo/bin/:/home/benjamin/.local/bin:/home/benjamin/programms/zig-linux-x86_64-0.11.0-dev.3786+8dcb4a3dc
## Tools
go: /usr/lib/golang/bin/go: go version go1.21.7 linux/amd64
gopls: /home/benjamin/go/bin/gopls (version: v0.15.1 built with go: go1.21.7)
gotests: /home/benjamin/go/bin/gotests (version: v1.6.0 built with go: go1.21.7)
gomodifytags: /home/benjamin/go/bin/gomodifytags (version: v1.16.0 built with go: go1.21.7)
impl: /home/benjamin/go/bin/impl (version: v1.1.0 built with go: go1.21.7)
goplay: /home/benjamin/go/bin/goplay (version: v1.0.0 built with go: go1.21.7)
dlv: /home/benjamin/go/bin/dlv (version: v1.22.1 built with go: go1.21.7)
staticcheck: /home/benjamin/go/bin/staticcheck (version: v0.4.7 built with go: go1.21.7)
## Go env
Workspace Folder (endgame): /home/benjamin/endgame
GO111MODULE=''
GOARCH='amd64'
GOBIN=''
GOCACHE='/home/benjamin/.cache/go-build'
GOENV='/home/benjamin/.config/go/env'
GOEXE=''
GOEXPERIMENT=''
GOFLAGS=''
GOHOSTARCH='amd64'
GOHOSTOS='linux'
GOINSECURE=''
GOMODCACHE='/home/benjamin/go/pkg/mod'
GONOPROXY=''
GONOSUMDB=''
GOOS='linux'
GOPATH='/home/benjamin/go'
GOPRIVATE=''
GOPROXY='direct'
GOROOT='/usr/lib/golang'
GOSUMDB='off'
GOTMPDIR=''
GOTOOLCHAIN='local'
GOTOOLDIR='/usr/lib/golang/pkg/tool/linux_amd64'
GOVCS=''
GOVERSION='go1.21.7'
GCCGO='gccgo'
GOAMD64='v1'
AR='ar'
CC='gcc'
CXX='g++'
CGO_ENABLED='1'
GOMOD='/home/benjamin/endgame/go.mod'
GOWORK=''
CGO_CFLAGS='-O2 -g'
CGO_CPPFLAGS=''
CGO_CXXFLAGS='-O2 -g'
CGO_FFLAGS='-O2 -g'
CGO_LDFLAGS='-O2 -g'
PKG_CONFIG='pkg-config'
GOGCCFLAGS='-fPIC -m64 -pthread -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=/tmp/go-build2729943877=/tmp/go-build -gno-record-gcc-switches'
Go related settings:
\\ Hoping to get more information (bug doesn't rely on them):
"go.trace.server": "verbose",
"go.languageServerFlags": [
"-rpc.trace",
"-logfile",
"/tmp/gopls.log"
],
Expected behaviour
- No zap symbol next to the go version when all go tools are up to date
- If a drop-down menu with an option to
Open gopls 'trace' vX.XX.X
appears, clicking on it does actually open a log-file with a trace.
The bug
The zap symbol next to the go version in the status bar does not disappear, even after updating all analysis tools. Clicking on it opens the command panel with the following options:
- Locate Configured Go Tools
- Choose Go Environment
- [zap symbol] Open 'gopls' trace v0.15.01
- Open 'go.mod'
Clicking on the third option closes the drop down menu, but does not seem to have any effect. Behaviour persists after adding the settings-rpc.trace
,-logfile
and/path/to/some/file
to thesettings.json
as described above. However, now I am able to locate the trace on my file system, but it does not seem to contain indicators about what is happening. The trace file does not contain the wordswarning
orerror
.
Steps to reproduce the behaviour:
- Install go extension
- Open some
.go
file - Download and Install go tool chain as instructed.
- See error