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
On my MacBook when I select more than around 1100 characters the parsing of the selection is failing and causing then an syntax error when executed in the terminal.
Steps to reproduce:
Select more than 1100 characters with some indentations like functions, classes, loops,...
Then press shift + enter (Python: Run selection/Line in Python Terminal)
Now the data gets parsed wrong and is causing an Error.
screenrecording.mov
Diagnostic data
Output for Python in the Output panel (View→Output, change the drop-down the upper-right of the Output panel to Python)
XXX
Extension version: 2026.0.0
VS Code version: Code 1.108.1 (Universal) (585eba7c0c34fd6b30faac7c62a42050bfbc0086, 2026-01-14T14:55:44.241Z)
OS version: Darwin arm64 25.2.0
Modes:
Python version (& distribution if applicable, e.g. Anaconda): 3.12.12
Type of virtual environment used (e.g. conda, venv, virtualenv, etc.): Venv
Value of the python.languageServer setting: Pylance
Type: Bug
Behaviour
On my MacBook when I select more than around 1100 characters the parsing of the selection is failing and causing then an syntax error when executed in the terminal.
Steps to reproduce:
Select more than 1100 characters with some indentations like functions, classes, loops,...
Then press shift + enter (Python: Run selection/Line in Python Terminal)
Now the data gets parsed wrong and is causing an Error.
screenrecording.mov
Diagnostic data
Output for
Pythonin theOutputpanel (View→Output, change the drop-down the upper-right of theOutputpanel toPython)Extension version: 2026.0.0
VS Code version: Code 1.108.1 (Universal) (585eba7c0c34fd6b30faac7c62a42050bfbc0086, 2026-01-14T14:55:44.241Z)
OS version: Darwin arm64 25.2.0
Modes:
python.languageServersetting: PylanceUser Settings
Installed Extensions
System Info
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: enabled_on
trees_in_viz: disabled_off
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
A/B Experiments