Skip to content

Install/Update Tools does not update gopls to newer Go version #3982

@rittneje

Description

@rittneje

What version of Go, VS Code & VS Code Go extension are you using?

Version Information
$ go version
go version go1.25.6 darwin/arm64
$ ./gotools/bin/gopls version
golang.org/x/tools/gopls v0.21.0
$ code -v
1.108.2
c9d77990917f3102ada88be140d28b038d1dd7c7
arm64
  • Run go version to get version of Go from the VS Code integrated terminal.
    go version go1.25.6 darwin/arm64
  • Run gopls -v version to get version of Gopls from the VS Code integrated terminal.
    golang.org/x/tools/gopls v0.21.0
  • Run code -v or code-insiders -v to get version of VS Code or VS Code Insiders.
1.108.2
c9d77990917f3102ada88be140d28b038d1dd7c7
arm64
  • Check your installed extensions to get the version of the VS Code Go extension
    0.52.1
  • Run Ctrl+Shift+P (Cmd+Shift+P on Mac OS) > Go: Locate Configured Go Tools command.
# Tools Configuration


## Environment

GOBIN: undefined
toolsGopath: /Users/rittneje/gotools
gopath: /Users/rittneje/go-workspace
GOROOT: /usr/local/go
PATH: /opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/opt/pmk/env/global/bin:/Applications/Wireshark.app/Contents/MacOS:/usr/local/go/bin

## Tools

	go:	/usr/local/go/bin/go: go version go1.25.6 darwin/arm64

	gotests:	/Users/rittneje/gotools/bin/gotests	(version: v1.6.0 built with go: go1.25.6)
	impl:	/Users/rittneje/gotools/bin/impl	(version: v1.4.0 built with go: go1.25.6)
	goplay:	/Users/rittneje/gotools/bin/goplay	(version: v1.0.0 built with go: go1.25.6)
	dlv:	/Users/rittneje/gotools/bin/dlv	(version: v1.26.0 built with go: go1.25.6)
	golangci-lint-v2:	/Users/rittneje/gotools/bin/golangci-lint-v2	(version: v2.8.0 built with go: go1.25.6)
	gopls:	/Users/rittneje/gotools/bin/gopls	(version: v0.21.0 built with go: go1.25.5)

## Go env

Workspace Folder (antenati): /Users/rittneje/antenati

	AR='ar'
	CC='clang'
	CGO_CFLAGS='-O2 -g'
	CGO_CPPFLAGS=''
	CGO_CXXFLAGS='-O2 -g'
	CGO_ENABLED='1'
	CGO_FFLAGS='-O2 -g'
	CGO_LDFLAGS='-O2 -g'
	CXX='clang++'
	GCCGO='gccgo'
	GO111MODULE=''
	GOARCH='arm64'
	GOARM64='v8.0'
	GOAUTH='netrc'
	GOBIN=''
	GOCACHE='/Users/rittneje/Library/Caches/go-build'
	GOCACHEPROG=''
	GODEBUG=''
	GOENV='/Users/rittneje/Library/Application Support/go/env'
	GOEXE=''
	GOEXPERIMENT=''
	GOFIPS140='off'
	GOFLAGS=''
	GOGCCFLAGS='-fPIC -arch arm64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -ffile-prefix-map=/var/folders/4r/75blkk01543_51vp0jcgy1kr0000gn/T/go-build159018903=/tmp/go-build -gno-record-gcc-switches -fno-common'
	GOHOSTARCH='arm64'
	GOHOSTOS='darwin'
	GOINSECURE=''
	GOMOD='/dev/null'
	GOMODCACHE='/Users/rittneje/go-workspace/pkg/mod'
	GONOPROXY=''
	GONOSUMDB=''
	GOOS='darwin'
	GOPATH='/Users/rittneje/go-workspace'
	GOPRIVATE=''
	GOPROXY='https://proxy.golang.org,direct'
	GOROOT='/usr/local/go'
	GOSUMDB='sum.golang.org'
	GOTELEMETRY='off'
	GOTELEMETRYDIR='/Users/rittneje/Library/Application Support/go/telemetry'
	GOTMPDIR=''
	GOTOOLCHAIN='local'
	GOTOOLDIR='/usr/local/go/pkg/tool/darwin_arm64'
	GOVCS=''
	GOVERSION='go1.25.6'
	GOWORK=''
	PKG_CONFIG='pkg-config'

Share the Go related settings you have added/edited

    "go.toolsGopath": "${env:HOME}/gotools",
    "[go]": {
        "editor.formatOnSave": true
    },
    "go.useLanguageServer": true,
    "go.vetOnSave": "package",
    "go.formatTool": "goimports",
    "go.lintTool": "golangci-lint-v2",

Describe the bug

As you can see from the version information, I have Go 1.25.6 on my machine. Yet gopls was compiled with Go 1.25.5. I tried re-running "Go: Install/Update Tools" several times but it did not cause gopls to be upgraded to the new toolchain.

Steps to reproduce the behavior:

  1. Install latest gopls with Go 1.25.5.
  2. Upgrade to Go 1.25.6.
  3. Run "Go: Install/Update Tools".

Screenshots or recordings

If applicable, add screenshots or recordings to help explain your problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions