Skip to content

command:python.interpreterPath suddenly resolving incorrectly #645

@breathe

Description

@breathe

Type: Bug

I've been using the same launch.json without issue for a good while now within my project.

Suddenly command:python.interpreterPath is resolving to homebrew python rather than the .venv python associated with my project (and selected as the active python interpreter)

launch.json has configuration like this in it

"program": "${command:python.interpreterPath}/../zephyrus",

The setup here is to invoke a cli entrypoint installed by poetry into the venv's binary directory. That entrypoint is relative to the .venv python interpreter and this was working fine.

But since something in vscode updated -- this now resolves to /opt/homebrew/bin/zephyrus -- aka command:python.interpreterPath is resolving to the homebrew python NOTTTT the configured python interpreter (chosen via Python -> Select Interpreter).

VS Code version: Code 1.102.2 (Universal) (c306e94f98122556ca081f527b466015e1bc37b0, 2025-07-22T12:15:48.520Z)
OS version: Darwin arm64 24.5.0
Modes:

System Info
Item Value
CPUs Apple M4 Max (16 x 2400)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: enabled_on
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
Load (avg) 2, 5, 4
Memory (System) 64.00GB (0.26GB free)
Process Argv . --crash-reporter-id 818f26eb-8295-435e-8372-61b6f975d5ea
Screen Reader no
VM 0%
Extensions (46)
Extension Author (truncated) Version
ohm att 1.0.0
markdown-mermaid bie 1.28.0
vscode-tailwindcss bra 0.14.25
pgformatter bra 1.31.0
package-json-upgrade cod 3.2.1
systemd-unit-file coo 1.0.8
transformer dak 1.12.1
vscode-eslint dba 3.0.10
docker doc 0.13.0
gitlens eam 17.3.2
vscode-html-css ecm 2.0.13
prettier-vscode esb 11.0.0
shell-format fox 7.2.5
vscode-hcl-format fre 1.0.0
github-linker gim 0.2.5
vscode-github-actions git 0.27.2
hcl has 0.6.0
terraform has 2.34.5
vscode-clangd llv 0.2.0
bash-ide-vscode mad 1.43.0
dotenv mik 1.0.1
file-downloader min 1.0.13
black-formatter ms- 2025.2.0
debugpy ms- 2025.10.0
isort ms- 2025.0.0
mypy-type-checker ms- 2025.2.0
python ms- 2025.10.1
vscode-pylance ms- 2025.7.1
vscode-python-envs ms- 1.0.0
jupyter ms- 2025.6.0
jupyter-keymap ms- 1.1.2
jupyter-renderers ms- 1.3.0
vscode-jupyter-cell-tags ms- 0.1.9
vscode-jupyter-slideshow ms- 0.1.6
cmake-tools ms- 1.21.36
cpptools-extension-pack ms- 1.3.1
vscode-js-profile-flame ms- 1.0.9
quicktype qui 23.0.170
vscode-yaml red 1.18.0
fish-vscode sky 0.2.1
vscode-open-in-github sys 1.18.0
vscode-lldb vad 1.11.5
react-ts-css vii 3.2.7
quokka-vscode Wal 1.0.734
wallaby-vscode Wal 1.0.454
jinja who 0.0.8

(1 theme extensions excluded)

A/B Experiments
vsliv368:30146709
pythonvspyt551cf:31249601
binariesv615:30325510
h48ei257:31000450
nativeloc1:31344060
dwcopilot:31170013
6074i472:31201624
dwoutputs:31242946
9064b325:31222308
copilot_t_ci:31333650
e5gg6876:31282496
pythoneinst12:31285622
c7cif404:31314491
pythonpulldiag:31343502
996jf627:31283433
pythonrdcb7:31342333
usemplatestapi:31297334
0aa6g176:31307128
747dc170:31275177
aj953862:31281341
generatesymbolt:31295002
convertfstringf:31295003
9d2cg352:31346308
convertlamdat:31350063
usemarketplace:31343026
nesew2to5:31336538
agentclaude:31335814
nes-diff-11:31337487
replacestringexc:31350595
nes-set-on:31340697
6abeh943:31336334
envsactivate1:31353494
yijiwantestdri0626-t:31336930
0927b901:31350571
ji9b5146:31348712
45650338:31354155
0cj2b977:31352657

Metadata

Metadata

Assignees

Labels

author-verification-requestedIssues potentially verifiable by issue authorbugIssue identified by VS Code Team member as probable bugverifiedVerification succeeded

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions