Title: KeyboardInterrupt When Running Selection/Line in Python Terminal with 'Shift+Enter' · Issue #24422 · microsoft/vscode-python · GitHub
Open Graph Title: KeyboardInterrupt When Running Selection/Line in Python Terminal with 'Shift+Enter' · Issue #24422 · microsoft/vscode-python
X Title: KeyboardInterrupt When Running Selection/Line in Python Terminal with 'Shift+Enter' · Issue #24422 · microsoft/vscode-python
Description: Environment: Operating System: Windows 11 VS Code Version: 1.94.0 Python Extension Version: v2024.16.0 Steps to reproduce: Default setting: the 'shift+enter' keyboard shortcut Runs Selection/Line in Python REPL. Ensure that the setting "...
Open Graph Description: Environment: Operating System: Windows 11 VS Code Version: 1.94.0 Python Extension Version: v2024.16.0 Steps to reproduce: Default setting: the 'shift+enter' keyboard shortcut Runs Selection/Line i...
X Description: Environment: Operating System: Windows 11 VS Code Version: 1.94.0 Python Extension Version: v2024.16.0 Steps to reproduce: Default setting: the 'shift+enter' keyboard shortcut Runs Selectio...
Opengraph URL: https://github.com/microsoft/vscode-python/issues/24422
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"KeyboardInterrupt When Running Selection/Line in Python Terminal with 'Shift+Enter'","articleBody":"**Environment:**\r\nOperating System: Windows 11\r\nVS Code Version: 1.94.0\r\nPython Extension Version: v2024.16.0\r\n\r\n**Steps to reproduce:**\r\n\r\n_Default setting: the 'shift+enter' keyboard shortcut Runs Selection/Line in Python REPL._\r\n\r\n1. Ensure that the setting \"python.REPL.sendToNativeREPL\" is set to false. (This setting leads to the 'Shift+Enter' keyboard shortcut running the Selection/Line in the Python Terminal.)\r\n2. Open a Python script file (.py) in VS Code.\r\n3. Highlight a line or selection of code in the editor.\r\n4. Press Shift+Enter to run the selection or line in the Python Terminal.\r\n\r\n**Expected Behavior:**\r\nThe selected line or code executes in the Python Terminal without any interruptions or errors.\r\n\r\n**Actual Behavior:**\r\nA KeyboardInterrupt is outputted before the selection or line continues executing in the Python Terminal.\r\n\r\n**Additional Information:**\r\n- The issue occurs consistently when running a selection or line with Shift+Enter with the specified configuration.\r\n- The KeyboardInterrupt appears even when the execution continues after the interrupt message.\r\n- If the execution starts from a Python terminal, an error message is displayed, but the KeyboardInterrupt does not appear anymore.\r\n- The issue can be also triggered by setting a different keyboard shortcut.\r\n\r\nhttps://github.com/user-attachments/assets/cea67d67-458c-4bc1-bd03-4ac37458a330\r\n\r\n\r\nhttps://github.com/user-attachments/assets/2bb1994c-fbd1-432e-b380-8d41c5537030\r\n","author":{"url":"https://github.com/CardonaEA","@type":"Person","name":"CardonaEA"},"datePublished":"2024-10-04T19:19:35Z","url":"https://github.com/microsoft/vscode-python/issues/24422"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:e27f285f-4297-656c-4ca1-08dc5caef472 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9098:216060:4E8292:6EC3C9:6AFDBA62 |
| html-safe-nonce | 3446d70f13020d8265a52328eb7f252c7548e7396a03059d48e288ff1701d3f3 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MDk4OjIxNjA2MDo0RTgyOTI6NkVDM0M5OjZBRkRCQTYyIiwidmlzaXRvcl9pZCI6IjM3MzcyNzg5MTEyMzk1MzUyMDIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 95fa64bcbe289aac7ad40e9d7654cf49dbb843d96853bebac108dd45f4b0c9ac |
| hovercard-subject-tag | issue:2651047590 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/vscode-python/24422/issue_layout |
| twitter:image | https://opengraph.githubassets.com/522c42070e4acdae5c54ba2458cbb7eb00c80d10343859ee13986cf4f65ceec8/microsoft/vscode-python/issues/24422 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/522c42070e4acdae5c54ba2458cbb7eb00c80d10343859ee13986cf4f65ceec8/microsoft/vscode-python/issues/24422 |
| og:image:alt | Environment: Operating System: Windows 11 VS Code Version: 1.94.0 Python Extension Version: v2024.16.0 Steps to reproduce: Default setting: the 'shift+enter' keyboard shortcut Runs Selection/Line i... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | CardonaEA |
| hostname | github.com |
| expected-hostname | github.com |
| None | 8309f07eb60a4237a657068c83d0bb57be4c7e02937f5e9933126f4bd596aac4 |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoft/vscode-python git https://github.com/microsoft/vscode-python.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 106462765 |
| octolytics-dimension-repository_nwo | microsoft/vscode-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | true |
| octolytics-dimension-repository_parent_id | 49946255 |
| octolytics-dimension-repository_parent_nwo | DonJayamanne/pythonVSCode |
| octolytics-dimension-repository_network_root_id | 49946255 |
| octolytics-dimension-repository_network_root_nwo | DonJayamanne/pythonVSCode |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 2f7154d847f1ddc5baa83b109a3e1d924605e2a3 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width