What version of Go, VS Code & VS Code Go extension are you using?
Version Information
* Run `code -v` or `code-insiders -v` to get version of VS Code or VS Code Insiders.
- 1.86.2 903b1e9d8990623e3d7da1df3d33db3e42d80eda x64
* Check your installed extensions to get the version of the VS Code Go extension
- v0.41.1
Describe the bug
Manually choosing a Go binary as the Go version silently fails (no notification) if go.mod requires a newer version than the binary.
Steps to reproduce the behavior:
Set the Go version to 1.22.
Open a Go project and set go 1.22 in go.mod.
Click on the 1.22.0 ⚡ status bar icon.
Select Choose Go Environment.
Select Choose from file browser.
Choose a 1.21 or earlier binary.
It silently fails.
Logs:
2024-02-29 19:49:00.756 [info] failed to run "/usr/local/go/bin/go version": Error: Command failed: /usr/local/go/bin/go version
go: downloading go1.22 (darwin/amd64)
go: download go1.22 for darwin/amd64: toolchain not available
What version of Go, VS Code & VS Code Go extension are you using?
Version Information
* Run `code -v` or `code-insiders -v` to get version of VS Code or VS Code Insiders. - 1.86.2 903b1e9d8990623e3d7da1df3d33db3e42d80eda x64 * Check your installed extensions to get the version of the VS Code Go extension - v0.41.1
Describe the bug
Manually choosing a Go binary as the Go version silently fails (no notification) if
go.mod
requires a newer version than the binary.Steps to reproduce the behavior:
go 1.22
ingo.mod
.1.22.0 ⚡
status bar icon.Choose Go Environment
.Choose from file browser
.Logs: