Repository navigation
Running a file in WSL executes ^C(keyboardInterrupt) before running #24674
Copy link
Copy link
Closed
Labels
area-terminalbugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable bugneeds PRReady to be worked onReady to be worked onverification-neededVerification of issue is requestedVerification of issue is requestedverifiedVerification succeededVerification succeeded
Milestone
Description
Activity
- addedtriage-neededNeeds assignment to the proper sub-teamNeeds assignment to the proper sub-team
on Jan 3, 2025 Hi! Can you give more details about how you run this script? Like what button you are using / flow to run it? Thanks
- addedinfo-neededIssue requires more information from posterIssue requires more information from poster
on Jan 6, 2025 I am using 'run python file' from the run button. This is provided by the Python extension.
- removedinfo-neededIssue requires more information from posterIssue requires more information from poster
on Jan 6, 2025 Thanks for filing this. This would get resolved once I merge #24555 again. Will leave this open.
Reacted by Alex Hughes- changed the title
[-]Running a file in WSL executes ^C before running[/-][+]Running a file in WSL executes ^C(keyboardInterrupt) before running[/+]on Jan 7, 2025 - addedbugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable bugneeds PRReady to be worked onReady to be worked onand removedtriage-neededNeeds assignment to the proper sub-teamNeeds assignment to the proper sub-team
on Jan 7, 2025 - added a commit that references this issue
on Feb 4, 2025 - addedverification-neededVerification of issue is requestedVerification of issue is requested
on Feb 4, 2025 Verification steps:
- This is only applicable for Windows, WSL ONLY
- Install latest Python extension pre-release on insiders.
- Make sure you have Python interpreter 3.13 or higher selected
- Try running a Python file in the terminal, make sure you dont see the Keyboard Interrupt show up
I thought you would like to know, this fixes the same issue on MacOS too.
Reacted by Anthony KimYeap! Alex Hughes (@AWH1122) is correct. This was resolved for MacOS earlier as well :)
Just wanted to leave this particular issue dedicated for Windows and WSL.Reacted by Alex Hughes
Metadata
Metadata
Assignees
Labels
area-terminalbugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable bugneeds PRReady to be worked onReady to be worked onverification-neededVerification of issue is requestedVerification of issue is requestedverifiedVerification succeededVerification succeeded
Type: Bug
Behaviour
Running a script in WSL always has a ^C before it. This causes the terminal to become cluttered.
Steps to reproduce:
Diagnostic data
Output for
Pythonin theOutputpanel (View→Output, change the drop-down the upper-right of theOutputpanel toPython)Extension version: 2024.22.1
VS Code version: Code 1.96.2 (fabdb6a30b49f79a7aba0f2ad9df9b399473380f, 2024-12-19T10:22:47.216Z)
OS version: Windows_NT x64 10.0.22631
Modes:
Remote OS version: Linux x64 5.15.167.4-microsoft-standard-WSL2
python.languageServersetting: DefaultUser Settings
Installed Extensions
System Info
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
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
A/B Experiments