Skip to content

Unwanted execution of KeyboardInterrupt . #25468

@marciomocellin

Description

@marciomocellin

Type: Bug

Behaviour

I updated the extension to Python v2025.14.0. When I run shift+enter, KeyboardInterrupt appears in the terminal. When I return to the previous version, this does not happen.

Steps to reproduce:

Python 3.12.3 (main, Aug 14 2025, 17:47:21) [GCC 13.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
Ctrl click to launch VS Code Native REPL
>>> 
KeyboardInterrupt
>>> import asyncio
umber: int):
    print(
     "Eu sou um pinguim falante superespecial. Muito mais legal que aquela impressora. "
     f"Aliás, meu número da sorte é: {magic_number}."
    )

>>> async def loudmouth_penguin(magic_number: int):
...     print(
...      "Eu sou um pinguim falante superespecial. Muito mais legal que aquela impressora. "
...      f"Aliás, meu número da sorte é: {magic_number}."
...     )
... 
>>> 

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: 2025.14.0
VS Code version: Code 1.104.1 (0f0d87fa9e96c856c5212fc86db137ac0d783365, 2025-09-17T23:36:24.973Z)
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.3
  • Type of virtual environment used (e.g. conda, venv, virtualenv, etc.): Venv
  • Value of the python.languageServer setting: Default
User Settings


languageServer: "Pylance"

Installed Extensions
Extension Name Extension Id Version
copilot Git 1.372.0
copilot-chat Git 0.31.0
debugpy ms- 2025.10.0
js-debug ms- 1.104.0
python ms- 2025.14.0
vscode-js-profile-table ms- 1.0.10
vscode-language-pack-pt-BR MS- 1.104.2025091009
vscode-pylance ms- 2025.8.1
vscode-python-envs ms- 1.8.0
System Info
Item Value
CPUs 12th Gen Intel(R) Core(TM) i5-1245U (12 x 2496)
GPU Status 2d_canvas: enabled
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
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
Load (avg) undefined
Memory (System) 15.64GB (2.25GB free)
Process Argv --crash-reporter-id a70fe56d-14c0-43e9-97b4-2c2fe54536b3
Screen Reader no
VM 0%
Item Value
Remote WSL: Ubuntu
OS Linux x64 6.6.87.2-microsoft-standard-WSL2
CPUs 12th Gen Intel(R) Core(TM) i5-1245U (12 x 0)
Memory (System) 7.58GB (5.46GB free)
VM 0%
A/B Experiments
vsliv368cf:30146710
binariesv615:30325510
nativeloc1:31344060
dwcopilot:31170013
dwoutputs:31242946
copilot_t_ci:31333650
e5gg6876:31282496
996jf627:31283433
pythonrdcb7:31342333
usemplatestapi:31297334
aj953862:31281341
nesew2to5:31336538
agentgpt4:31387437
4f60g487:31327383
nes-set-on:31351930
63221493:31336333
0927b901:31350571
ovs_c:31383294
0cj2b977:31352657
cloudbuttont:31379625
todos-1:31384886
control_gpt5applypatchexclusively:31387916
42190218_ostrepl:31382710
metis-embeddings:31387854
trigger-command-fix:31379601
auto_model_enabled:31385282

Metadata

Metadata

Assignees

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