forked from DonJayamanne/pythonVSCode
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Open
Labels
triage-neededNeeds assignment to the proper sub-teamNeeds assignment to the proper sub-team
Description
Type: Bug
Behaviour
With python.terminal.executeInFileDir
enabled and in a remote SSH session, the cd to/dir
command often execute after python file.py
, especially runs python file more than once in the same terminal.
Doesn't seem to happen in a local session.
Steps to reproduce:
- Launch a remote SSH session
- Open any
.py
file - Click
Run Python File
more than once - See
cd
command comes afterpython
command
Diagnostic data
Output for Python
in the Output
panel (View
→Output
, change the drop-down the upper-right of the Output
panel to Python
)
2025-08-07 10:27:56.339 [info] Send text to terminal: conda activate env
2025-08-07 10:27:56.840 [info] Send text to terminal: cd dir/to/file
2025-08-07 10:27:56.840 [info] Send text to terminal: conda/env/path/bin/python /dir/to/file/loss.py
2025-08-07 10:28:00.908 [info] Send text to terminal: cd dir/to/file
2025-08-07 10:34:58.298 [info] Send text to terminal: cd dir/to/file
2025-08-07 10:34:59.673 [info] Send text to terminal: cd dir/to/file
Extension version: 2025.10.1
VS Code version: Code 1.102.3 (488a1f239235055e34e673291fb8d8c810886f81, 2025-07-29T03:00:23.339Z)
OS version: Linux x64 6.12.38+deb13-amd64
Modes:
Remote OS version: Linux x64 5.15.0-105-generic
- Python version (& distribution if applicable, e.g. Anaconda): 3.10.0
- Type of virtual environment used (e.g. conda, venv, virtualenv, etc.): Conda
- Value of the
python.languageServer
setting: Default
User Settings
condaPath: "<placeholder>"
languageServer: "Pylance"
terminal
• executeInFileDir: true
Installed Extensions
Extension Name | Extension Id | Version |
---|---|---|
debugpy | ms- | 2025.10.0 |
gc-excelviewer | Gra | 4.2.63 |
isort | ms- | 2025.0.0 |
js-debug | ms- | 1.102.0 |
jupyter | ms- | 2025.7.0 |
jupyter-renderers | ms- | 1.3.0 |
python | ms- | 2025.10.1 |
rainbow-csv | mec | 3.20.0 |
tongyi-lingma | Ali | 2.5.17 |
vscode-js-profile-table | ms- | 1.0.10 |
vscode-jupyter-cell-tags | ms- | 0.1.9 |
vscode-jupyter-slideshow | ms- | 0.1.6 |
vscode-language-pack-zh-hans | MS- | 1.102.2025071609 |
vscode-pylance | ms- | 2025.7.1 |
vscode-python-envs | ms- | 1.2.0 |
System Info
Item | Value |
---|---|
CPUs | AMD Ryzen 5 3600X 6-Core Processor (12 x 3628) |
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: disabled_off video_decode: enabled video_encode: disabled_software vulkan: disabled_off webgl: enabled webgl2: enabled webgpu: disabled_off webnn: disabled_off |
Load (avg) | 0, 1, 0 |
Memory (System) | 31.26GB (18.78GB free) |
Process Argv | --crash-reporter-id 0fe251fe-0ac9-4c30-a50f-76946a12a198 --crash-reporter-id 0fe251fe-0ac9-4c30-a50f-76946a12a198 --crash-reporter-id 0fe251fe-0ac9-4c30-a50f-76946a12a198 |
Screen Reader | no |
VM | 0% |
DESKTOP_SESSION | gnome |
XDG_CURRENT_DESKTOP | GNOME |
XDG_SESSION_DESKTOP | gnome |
XDG_SESSION_TYPE | wayland |
Item | Value |
---|---|
Remote | SSH: va90sb60263.vicp.fun |
OS | Linux x64 5.15.0-105-generic |
CPUs | Intel(R) Core(TM) i9-14900K (32 x 800) |
Memory (System) | 188.51GB (183.64GB free) |
VM | 0% |
A/B Experiments
vsliv368cf:30146710
vswsl492:30256859
binariesv615:30325510
2e7ec940:31000449
nativeloc1:31344060
dwcopilot:31170013
6074i472:31201624
dwoutputs:31242946
copilot_t_ci:31333650
e5gg6876:31282496
pythoneinst12:31285622
c7cif404:31314491
996jf627:31283433
pythonrdcb7:31342333
usemplatestapi:31297334
0aa6g176:31307128
747dc170:31275177
aj953862:31281341
generatesymbolt:31295002
convertfstringf:31295003
pylancequickfixt:31358882
9d2cg352:31346308
convertlamdaf:31358879
usemarketplace:31343026
nesew2to5:31336538
agentclaude:31350858
b6b4d950:31327385
replacestringexc:31350595
nes-set-on:31351930
6abeh943:31336334
yijiwantestdri0626-t:31336930
0927b901:31350571
ji9b5146:31348712
45650338:31358607
0cj2b977:31352657
gaj49834:31362110
Metadata
Metadata
Assignees
Labels
triage-neededNeeds assignment to the proper sub-teamNeeds assignment to the proper sub-team