You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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"
deff(x):
returnx+1f(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.languageServer setting: Default
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 localpython_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"
Diagnostic data
Output for
Python
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toPython
)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.languageServer
setting: DefaultUser Settings
Installed Extensions
System Info
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
A/B Experiments
The text was updated successfully, but these errors were encountered: