Skip to content

Conversion to Scripts/python.exe not working #25995

@ivannp

Description

@ivannp

Type: Bug

The extension is supposed to automatically convert unix Python paths, like: .venv/bin/python to .venv/Scripts/pythone.exe. However it doesn't in all places.

Steps to reproduce:

A few things don't work just opening my project, which has:

"python.defaultInterpreterPath": "${workspaceFolder}/.venv/bin/python.exe"

  1. Run Python File in Terminal, or Debug don't work until I select the environment, thus, changing the interepreter.

  2. Ruff formatting - shows squibles under a lot of stuff until I change the interpreter.

Diagnostic data

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

XXX

Extension version: 2026.4.0
VS Code version: Code 1.123.0 (6a44c352bd24569c417e530095901b649960f9f8, 2026-06-03T11:29:03+02:00)
OS version: Windows_NT x64 10.0.26200
Modes:

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


languageServer: "Pylance"

Installed Extensions
Extension Name Extension Id Version
autodocstring njp 0.6.1
Bookmarks ale 14.1.1
cmake twx 0.0.17
cmake-tools ms- 1.23.52
copilot-chat Git 0.51.0
cpp-devtools ms- 0.5.13
cpptools ms- 1.32.2
cpptools-extension-pack ms- 1.5.1
cpptools-themes ms- 2.0.0
datawrangler ms- 1.24.1
debugpy ms- 2026.6.0
even-better-toml tam 0.21.2
gitlens eam 18.0.0
js-debug ms- 1.117.0
js-debug-companion ms- 1.1.3
jsts-chat-features Typ 0.0.2
jupyter ms- 2025.9.1
jupyter-keymap ms- 1.1.2
jupyter-renderers ms- 1.3.0
material-icon-theme PKi 5.35.0
prettier-sql-vscode inf 1.6.0
python ms- 2026.4.0
remote-explorer ms- 0.5.0
remote-ssh ms- 0.124.0
remote-ssh-edit ms- 0.87.0
ruff cha 2026.48.0
theme-dracula dra 2.25.1
vscode-icons vsc 12.18.0
vscode-js-profile-table ms- 1.0.10
vscode-jupyter-cell-tags ms- 0.1.9
vscode-jupyter-slideshow ms- 0.1.6
vscode-pylance ms- 2026.2.1
vscode-python-envs ms- 1.30.0
System Info
Item Value
CPUs AMD Ryzen 5 7600X 6-Core Processor (12 x 4691)
GPU Status 2d_canvas: enabled
GPU0: VENDOR= 0x1002, DEVICE=0x164e [AMD Radeon(TM) Graphics], DRIVER_VENDOR=AMD, DRIVER_VERSION=32.0.11024.2 ACTIVE
GPU1: VENDOR= 0x1414, DEVICE=0x008c [Microsoft Basic Render Driver], DRIVER_VERSION=10.0.26100.8328
Machine model name:
Machine model version:
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: disabled_off
trees_in_viz: disabled_off
video_decode: enabled
video_encode: enabled
webgl: enabled
webgpu: enabled
webnn: disabled_off
Load (avg) undefined
Memory (System) 31.15GB (12.69GB free)
Process Argv --crash-reporter-id 894b2e80-b5fb-48c0-814b-b5700322c915
Screen Reader no
VM 0%
A/B Experiments
vsliv368:30146709
pythonvspyt551:31249599
binariesv615:30325510
nativeloc1:31344060
dwcopilot:31170013
dwoutputs:31242946
copilot_t_ci:31333650
e5gg6876:31282496
pythonrdcb7:31342333
6518g693:31463988
aj953862:31281341
b6b4d950:31327385
6abeh943:31336334
envsactivate1:31505457
cloudbuttont:31379625
3efgi100_wstrepl:31403338
55ia6109:31457054
ec5jj548:31422691
cp_cls_t_966_ss:31526232
inlinechat_v2_hd992725:31505030
4je02754:31466945
8hhj4413:31478653
38bie571_auto:31426784
cp_cls_c_1081:31454833
conptydll_true:31498968
ia-use-proxy-models-svc:31452481
e9c30283:31461165
test_treatment2:31471001
c9b86496:31447327
idci7584:31464702
e3e4d672:31494082
ei9d7968:31496641
chat:31457767
8hig5102:31480529
89g7j272:31518289
7e187181:31503455
i2gc6536:31499202
52612955:31516516
ghj88844:31499326
ddid_t:31478206
hmra_i5g22:31518061
getcmakediagnosticson:31489824
7df3h592:31512476
cp_cls_t_1082:31516087
logging_enabled_new:31498466
j0d79568:31499440
jb_cp_cls_c_632:31524806
b1ei0813:31506238
748c7209:31512887
32d76977:31512328
ha629193:31508444
cdk-lw-on:31524445
nes-charagree-ctrl:31521373
2cfga817_c:31522397
a1ije391_t:31515488
61138546:31518536
nes-global-4k:31525690
gf14b233:31526830

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions