Python Console with For loop issue
Hi,
Python console can't execute a for loop statement. When I type “for i in range(0,3):”, I expect it to wrap around and go to the next line with leading “….” to allow me to write a statement. Once I press enter, it'll execute the entire for statement, normally with previous version. In turn, version 2025.1.1.1 just places the cursor at the beginning of the line after I press Enter.
PyCharm 2025.1.1.1
Build #PY-251.25410.159, built on May 14, 2025
Source revision: 31f194c2a1782
Runtime version: 21.0.6+9-b895.109 aarch64 (JCEF 122.1.9)
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Toolkit: sun.lwawt.macosx.LWCToolkit
macOS 15.5
GC: G1 Young Generation, G1 Concurrent GC, G1 Old Generation
Memory: 2048M
Cores: 14
Metal Rendering is ON
Registry:
ide.experimental.ui=true
Non-Bundled Plugins:
me.mbolotov.json.schema.generator (1.2)
com.jetbrains.space (251.23774.318)
com.intellij.ideolog (251.25410.24)
com.tylerthrailkill.intellij.solarized (3.0.1)
com.crunch42.openapi (2.05)
name.kropp.intellij.makefile (251.25410.28)
IdeaVIM (2.25.1)
PlantUML integration (7.11.2-IJ2023.2)
com.intellij.bigdatatools.core (251.25410.129)
com.intellij.bigdatatools.kafka (251.23774.318)
com.intellij.bigdatatools.binary.files (251.23774.318)
com.intellij.bigdatatools.rfs (251.25410.129)
com.intellij.bigdatatools.metastore.core (251.23774.318)
com.intellij.bigdatatools.flink (251.23774.318)
com.github.copilot (1.5.45-243)
com.intellij.bigdatatools.spark (251.25410.109)
com.intellij.bigdatatools.zeppelin (251.25410.109)
com.intellij.bigdatatools (251.23774.318)

请先登录再写评论。
Additional information:
Python console outside of Pycharm is working fine.
% python3
Python 3.11.5 (v3.11.5:cce6ba91b3, Aug 24 2023, 10:50:31) [Clang 13.0.0 (clang-1300.0.29.30)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> for i in range(0, 1):
... print("Python console outside is okay")
...
Python console outside is okay
>>> exit()
What Python version and interpreter are you using? I just checked with uv;
Make sure to disable any custom plugins as well just in case
Hi Miguel,
Thanks for the prompt reply. I'm using Python 3.11.5. I'm using the same plugins as I did with the previous version, and they are listed in the original post.
>>> sys.platform
'darwin'
>>> sys.version
'3.11.5 (v3.11.5:cce6ba91b3, Aug 24 2023, 10:50:31) [Clang 13.0.0 (clang-1300.0.29.30)]'
I'm using the same Python version as I did with my previous version of Pycharm.
(I have a screen recording but I'm not seeing an option to attach it into this post.)
We will need to investigate this one further - create a new bug report on Youtrack - provide the mentioned recording and also the IDE logs from Help | Collect Logs and Diagnostic Data