forked from DonJayamanne/pythonVSCode
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed
Labels
triage-neededNeeds assignment to the proper sub-teamNeeds assignment to the proper sub-team
Description
Type: Bug
Behaviour
Sending multi line selections to the Terminal REPL running Python 3.13.1 requires manually hitting "Enter" on the terminal for the code to be actually executed. This was not the case with 3.12.
I can fix this by replacing this line simply with False in my local python_files copy.
I couldn't find a similar Issue. The closest I could find is this superuser post describing exactly the same issue, just not via vs code.
Steps to reproduce:
Select the code below and hit "Shift+Enter"
def f(x):
return x+1
f(1)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-01-03 11:36:45.255 [info] Experiment 'pythonRecommendTensorboardExt' is active
2025-01-03 11:36:45.255 [info] Experiment 'pythonTerminalEnvVarActivation' is active
2025-01-03 11:36:45.255 [info] Experiment 'pythonTestAdapter' is active
2025-01-03 11:36:45.255 [info] Native locator: Refresh started
2025-01-03 11:36:45.346 [info] Native locator: Refresh finished in 126 ms
2025-01-03 11:36:45.427 [info] Python interpreter path: ./.venv/bin/python
2025-01-03 11:36:45.452 [info] > pyenv which python
2025-01-03 11:36:45.452 [info] cwd: .
2025-01-03 11:36:45.850 [info] > . ./.venv/bin/activate && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python ~/.vscode/extensions/ms-python.python-2024.22.1-linux-x64/python_files/printEnvVariables.py
2025-01-03 11:36:45.850 [info] shell: bash
2025-01-03 11:36:45.899 [info] > /bin/python3 ~/.vscode/extensions/ms-python.python-2024.22.1-linux-x64/python_files/printEnvVariables.py
2025-01-03 11:36:45.899 [info] shell: bash
2025-01-03 11:36:45.937 [info] Setting environment variable VIRTUAL_ENV in collection to /home/mbiron/projects/autostep/.venv {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2025-01-03 11:36:45.937 [info] Setting environment variable VIRTUAL_ENV_PROMPT in collection to .venv {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2025-01-03 11:36:45.937 [info] Prepending environment variable PS1 in collection with .venv {"applyAtShellIntegration":true,"applyAtProcessCreation":false}
2025-01-03 11:36:45.937 [info] Prepending environment variable PATH in collection with /home/mbiron/.vscode/extensions/ms-python.python-2024.22.1-linux-x64/python_files/deactivate/bash:/home/mbiron/projects/autostep/.venv/bin: {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2025-01-03 11:36:45.938 [info] Send text to terminal: /bin/python3 /home/mbiron/.vscode/extensions/ms-python.python-2024.22.1-linux-x64/python_files/printEnvVariablesToFile.py /home/mbiron/.vscode/extensions/ms-python.python-2024.22.1-linux-x64/python_files/deactivate/bash/envVars.txt
2025-01-03 11:36:48.298 [info] > ./.venv/bin/python ~/.vscode/extensions/ms-python.python-2024.22.1-linux-x64/python_files/normalizeSelection.py
2025-01-03 11:36:55.797 [info] Starting Pylance language server.
Extension version: 2024.22.1
VS Code version: Code 1.96.2 (fabdb6a30b49f79a7aba0f2ad9df9b399473380f, 2024-12-19T10:22:47.216Z)
OS version: Linux x64 6.8.0-51-generic snap
Modes:
- Python version (& distribution if applicable, e.g. Anaconda): 3.13.1
- Type of virtual environment used (e.g. conda, venv, virtualenv, etc.): Venv
- Value of the
python.languageServersetting: Default
User Settings
languageServer: "Pylance"
Installed Extensions
| Extension Name | Extension Id | Version |
|---|---|---|
| JavaScript Debugger | ms-vscode.js-debug | 1.96.0 |
| JavaScript Debugger Companion Extension | ms-vscode.js-debug-companion | 1.1.3 |
| Julia | julialang.language-julia | 1.127.2 |
| Pylance | ms-python.vscode-pylance | 2024.12.1 |
| Python | ms-python.python | 2024.22.1 |
| Python Debugger | ms-python.debugpy | 2024.14.0 |
| Table Visualizer for JavaScript Profiles | ms-vscode.vscode-js-profile-table | 1.0.10 |
System Info
| Item | Value |
|---|---|
| CPUs | Intel(R) Core(TM) Ultra 7 155H (22 x 3843) |
| GPU Status | 2d_canvas: unavailable_software canvas_oop_rasterization: disabled_off direct_rendering_display_compositor: disabled_off_ok gpu_compositing: disabled_software multiple_raster_threads: enabled_on opengl: disabled_off rasterization: disabled_software raw_draw: disabled_off_ok skia_graphite: disabled_off video_decode: disabled_software video_encode: disabled_software vulkan: disabled_off webgl: unavailable_software webgl2: unavailable_software webgpu: disabled_off webnn: unavailable_software |
| Load (avg) | 1, 1, 1 |
| Memory (System) | 62.30GB (55.40GB free) |
| Process Argv | --no-sandbox --force-user-env --crash-reporter-id 814f01f5-b020-4f78-b901-a1338211cc00 |
| Screen Reader | no |
| VM | 0% |
| DESKTOP_SESSION | ubuntu-wayland |
| XDG_CURRENT_DESKTOP | Unity |
| XDG_SESSION_DESKTOP | ubuntu-wayland |
| XDG_SESSION_TYPE | wayland |
A/B Experiments
vsliv368cf:30146710
vspor879:30202332
vspor708:30202333
vspor363:30204092
vswsl492:30256859
vscod805cf:30301675
binariesv615:30325510
vsaa593cf:30376535
py29gd2263:31024239
c4g48928:30535728
azure-dev_surveyone:30548225
962ge761:30959799
pythonnoceb:30805159
pythonmypyd1:30879173
h48ei257:31000450
pythontbext0:30879054
cppperfnew:31000557
dsvsc020:30976470
pythonait:31006305
dsvsc021:30996838
dvdeprecation:31068756
dwnewjupyter:31046869
2f103344:31071589
nativerepl1:31139838
pythonrstrctxt:31112756
nativeloc1:31192215
cf971741:31144450
iacca1:31171482
notype1:31157159
5fd0e150:31155592
dwcopilot:31170013
stablechunks:31184530
6074i472:31201624
Metadata
Metadata
Assignees
Labels
triage-neededNeeds assignment to the proper sub-teamNeeds assignment to the proper sub-team