-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IndentationError Running Loops #24761
Comments
Further clarification. This occurs when I write a loop with more than one argument after it.
While something like this does not
|
@therealsmithy Are you using run in terminal or something equivalent? |
I am using run in terminal. When I run in the Python REPL there is no problem. |
Thanks for filing this @therealsmithy Which Python version are you running? |
Screenshot of your editor with code and the terminal should help alot :) Thanks |
If you are using Python3.13 on Windows, then I would've said its highly likely related to: #24256 (comment) coming from python/cpython#124096. I'm hesitant because you say "I have confirmed that my code works in other IDE's, so it is not a code issue." Are you sure your other IDEs are using Python3.13 (if you are seeing this error on VS Code with Python version >=3.13) and have you tried to use external terminal (such as pwsh) and see if you get similar results? |
I am using 3.13.1 and I am using smart send. Even when I change my Python version to 3.12.8 I run into the same error. |
I see, for your 3.13 issue it looks like its from what I have mentioned previously. Could you just please double check if you are getting the same error even when you change to 3.12? |
3.12 actually works just fine. Thank you. |
Type: Bug
While trying to run a for loop in python, I am recieving an IndentationError: unexpected indent. I have confirmed that my code works in other IDE's, so it is not a code issue.
VS Code version: Code 1.96.4 (cd4ee3b1c348a13bafd8f9ad8060705f6d4b9cba, 2025-01-16T00:16:19.038Z)
OS version: Windows_NT x64 10.0.22631
Modes:
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
Extensions (11)
(1 theme extensions excluded)
A/B Experiments
The text was updated successfully, but these errors were encountered: