Skip to content

Run Selection/Line in Python Terminal hangs with two or more lines #24700

@ballings

Description

@ballings

Type: Bug

Selecting one line of code and using "Run Selection/Line in Python Terminal" works as expected. It sends the lines to the terminal and executes it. Selecting two or more lines of code and using "Run Selection/Line in Python Terminal" also sends the lines to the terminal, but then hangs. I need to press enter for the code to execute.

VS Code version: Code 1.96.2 (Universal) (fabdb6a30b49f79a7aba0f2ad9df9b399473380f, 2024-12-19T10:22:47.216Z)
OS version: Darwin arm64 23.6.0
Modes:

System Info
Item Value
CPUs Apple M2 Pro (12 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: disabled_off
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
Load (avg) 2, 3, 2
Memory (System) 16.00GB (0.46GB free)
Process Argv --crash-reporter-id daafdc49-a915-4e5b-b947-24c88c8d3270
Screen Reader no
VM 0%
Extensions (19)
Extension Author (truncated) Version
npm-intellisense chr 1.4.5
path-intellisense chr 2.10.0
vscode-eslint dba 3.0.10
debugpy ms- 2024.14.0
isort ms- 2023.10.1
python ms- 2024.23.2025010701
vscode-pylance ms- 2024.12.100
jupyter ms- 2024.11.0
jupyter-keymap ms- 1.1.2
jupyter-renderers ms- 1.0.21
vscode-jupyter-cell-tags ms- 0.1.9
vscode-jupyter-slideshow ms- 0.1.6
remote-ssh ms- 0.116.1
remote-ssh-edit ms- 0.87.0
remote-explorer ms- 0.4.3
sqltools mtx 0.28.3
sqltools-driver-pg mtx 0.5.4
pdf tom 1.2.2
JavaScriptSnippets xab 1.8.0
A/B Experiments
vsliv368:30146709
vspor879:30202332
vspor708:30202333
vspor363:30204092
vswsl492cf:30256860
vscod805:30301674
binariesv615:30325510
vsaa593cf:30376535
py29gd2263:31024239
14424c:31210806
c4g48928:30535728
azure-dev_surveyone:30548225
a9j8j154:30646983
962ge761:30959799
pythonnoceb:30805159
pythonmypyd1:30879173
2e7ec940:31000449
pythontbext0:30879054
cppperfnew:31000557
dsvsc020:30976470
pythonait:31006305
dsvsc021:30996838
dvdeprecation:31068756
dwnewjupytercf:31046870
newcmakeconfigv2:31071590
nativerepl2:31139839
pythonrstrctxt:31112756
nativeloc1:31192215
cf971741:31144450
iacca1:31171482
notype1:31157159
5fd0e150:31155592
dwcopilot:31170013
stablechunks:31184530
6074i472:31201624

Metadata

Metadata

Assignees

Labels

area-replbugIssue identified by VS Code Team member as probable bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions