Skip to content

Caching of interpreter paths is not refreshing (even manually) #25358

@brettcannon

Description

@brettcannon

Type: Bug

Behaviour

The extension seems to have a Python interpreter path cached as Python 3.12 when it's actually 3.13. Even a manual refresh doesn't fix things.

Diagnostic data

Output for Python in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Python)

2025-08-06 10:58:54.379 [warning] Inaccurate Python Environment Info for => 
Environment (Homebrew)
   Executable  : /home/linuxbrew/.linuxbrew/bin/python3
   Version     : 3.13.5
   Symlinks    : "/home/linuxbrew/.linuxbrew/bin/python3"
               : "/home/linuxbrew/.linuxbrew/bin/python3.13"
               : "/home/linuxbrew/.linuxbrew/opt/python3/bin/python3"
               : "/home/linuxbrew/.linuxbrew/opt/python@3/bin/python3"
               : "/home/linuxbrew/.linuxbrew/opt/python3/bin/python3.13"
               : "/home/linuxbrew/.linuxbrew/opt/python@3/bin/python3.13"
               : "/home/linuxbrew/.linuxbrew/opt/python@3.13/bin/python3"
               : "/home/linuxbrew/.linuxbrew/opt/python@3.13/bin/python3.13"
               : "/home/linuxbrew/.linuxbrew/Cellar/python@3.13/3.13.5/bin/python3"
               : "/home/linuxbrew/.linuxbrew/Cellar/python@3.13/3.13.5/bin/python3.13"
.
Resolved as => 
Environment (Homebrew)
   Executable  : /home/linuxbrew/.linuxbrew/bin/python3
   Version     : 3.12.4.final.0
   Prefix      : /home/linuxbrew/.linuxbrew/Cellar/python@3.12/3.12.4
   Architecture: x64
   Symlinks    : "/home/linuxbrew/.linuxbrew/bin/python3"
               : "/home/linuxbrew/.linuxbrew/bin/python3.13"
               : "/home/linuxbrew/.linuxbrew/opt/python3/bin/python3"
               : "/home/linuxbrew/.linuxbrew/opt/python@3/bin/python3"
               : "/home/linuxbrew/.linuxbrew/opt/python3/bin/python3.13"
               : "/home/linuxbrew/.linuxbrew/opt/python@3/bin/python3.13"
               : "/home/linuxbrew/.linuxbrew/opt/python@3.13/bin/python3"
               : "/home/linuxbrew/.linuxbrew/opt/python@3.12/bin/python3.12"
               : "/home/linuxbrew/.linuxbrew/opt/python@3.13/bin/python3.13"
               : "/home/linuxbrew/.linuxbrew/Cellar/python@3.13/3.13.5/bin/python3"
               : "/home/linuxbrew/.linuxbrew/Cellar/python@3.13/3.13.5/bin/python3.13"

Incorrect information => 
Environment Some(Homebrew) incorrectly identified
   Version is incorrect

2025-08-06 10:58:54.379 [info] Resolved Python Environment /home/linuxbrew/.linuxbrew/bin/python3

Extension version: 2025.11.2025072901
VS Code version: Code - Insiders 1.103.0-insider (30d92515871a884a29df95b3c96c57e8866142fa, 2025-08-06T13:21:46.058Z)
OS version: Windows_NT x64 10.0.26100
Modes:
Remote OS version: Linux x64 6.6.87.2-microsoft-standard-WSL2

  • Python version (& distribution if applicable, e.g. Anaconda): 3.12.4
  • Type of virtual environment used (e.g. conda, venv, virtualenv, etc.): System
  • Value of the python.languageServer setting: Pylance
User Settings


languageServer: "Pylance"

testing
• autoTestDiscoverOnSaveEnabled: false

Installed Extensions
Extension Name Extension Id Version
copilot Git 1.353.1720
copilot-chat Git 0.30.2025080503
cpptools ms- 1.26.3
debugpy ms- 2025.11.2025072901
js-debug ms- 1.102.0
python ms- 2025.11.2025072901
vscode-github-actions git 0.27.2
vscode-js-profile-table ms- 1.0.10
vscode-pull-request-github Git 0.117.2025080607
vscode-pylance ms- 2025.7.101
System Info
Item Value
CPUs 13th Gen Intel(R) Core(TM) i7-1370P (20 x 2189)
GPU Status 2d_canvas: unavailable_software
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: disabled_software
multiple_raster_threads: enabled_on
opengl: disabled_off
rasterization: disabled_software
raw_draw: disabled_off_ok
skia_graphite: disabled_off
trees_in_viz: disabled_off
video_decode: disabled_software
video_encode: disabled_software
vulkan: disabled_off
webgl: unavailable_software
webgl2: unavailable_software
webgpu: unavailable_software
webnn: unavailable_software
Load (avg) undefined
Memory (System) 63.66GB (42.30GB free)
Process Argv --crash-reporter-id 8c2d3e93-0526-420f-a934-b71e879abff1
Screen Reader no
VM 0%
Item Value
Remote WSL: Debian
OS Linux x64 6.6.87.2-microsoft-standard-WSL2
CPUs 13th Gen Intel(R) Core(TM) i7-1370P (20 x 0)
Memory (System) 31.18GB (28.27GB free)
VM 0%
A/B Experiments
vsliv368cf:30146710
pythonvspyt551:31249597
9b8hh234:30694863
h48ei257:31000450
nativeloc1:31118317
dwcopilot:31158714
471b6256:31263136
6074i472:31201624
dwoutputs:31242946
copilot_t_ci:31333650
g012b348:31231168
pythoneinst12:31251391
c7cif404:31309980
6gi0g917:31259950
996jf627:31264550
pythonrdcb7:31268811
usemplatestapi:31297334
e6194696:31317039
747dc170:31275146
pythonpcpt1:31345880
6518g693:31302842
generatesymbolt:31280541
convertfstringf:31280702
9d2cg352:31346308
b99bg931:31349649
usemarketplace:31343026
0g1h6703:31329154
nes-emitfast-1:31333560
replacestringexc:31350595
6abeh943:31336334
envsactivate1:31349248
0927b901:31340060
nb18600_tf:31359574
editstats-enabled:31346256
gendocstringt:31358906
yield-to-copilot-on:31357778
pylancealldocsf:31358031
cloudbuttonc:31360915
retrydisabled:31362143

Metadata

Metadata

Assignees

No one assigned

    Labels

    triage-neededNeeds assignment to the proper sub-team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions