Skip to content

go version do not change in terminal after choose environment #3975

@bytemain

Description

@bytemain

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.
  • Run code -v or code-insiders -v to get version of VS Code or VS Code Insiders.
  • 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.

Share the Go related settings you have added/edited

None

Describe the bug

I have defined PATH statement in bashrc:

export PATH="$HOME/sdk/go1.24.3/bin:$PATH"

then after selecting the go version in the vscode plugin:
CleanShot 2026-01-17 at 17 38 48@2x

it would not take effect in the terminal:
Terminal will use the one in your bashrc:
Code 2026-01-17 17 30 29
but the language server will use the one you selected:
Code 2026-01-17 17 30 31

Steps to reproduce the behavior:

Select a go version:
Image

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions