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
When sending a function to the built-in REPL using Shift+Enter the combination of a Docstring under the function header and a empty line will result in an IndentationError: unexpected indent.
The empty line is automatically created by auto-formatters like black or ruff.
I am getting this as well, preventing me from doing any work. I've tried everything I can think of including downgrading, rebinding keys, uninstalling etc
Type: Bug
Behaviour
When sending a function to the built-in REPL using Shift+Enter the combination of a Docstring under the function header and a empty line will result in an IndentationError: unexpected indent.
The empty line is automatically created by auto-formatters like black or ruff.
Steps to reproduce:
Creata a new *.py file.
Add this function:
Shift+Enter
.Diagnostic data
Output for
Python
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toPython
)Using ipython-REPL it works.
Extension version: 2024.15.2024091001
VS Code version: Code 1.93.0 (4849ca9bdf9666755eb463db297b69e5385090e3, 2024-09-04T13:02:38.431Z)
OS version: Windows_NT x64 10.0.19044
Modes:
python.languageServer
setting: 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
The text was updated successfully, but these errors were encountered: