Bug? "Indent expected" in 8th indentation 'level'

Answered

Hi

PyCharm is a great tool, but sometimes something a bit strange happens.

This time PyCharm suddenly doesn't seem to be able to handle a new indentation 'level'.

I have included a screenshot that shows the somewhat strange behaviour:

Upload id: 2021_06_03_KuEHPCFoVfv2aGoB (file: PyCharm indentation error 2021-06-03.png)

My PyCharm:

PyCharm 2021.1.2 (Community Edition)
Build #PC-211.7442.45, built on June 1, 2021
Runtime version: 11.0.11+9-b1341.57 amd64
VM: Dynamic Code Evolution 64-Bit Server VM by JetBrains s.r.o.
Linux 5.8.0-53-generic
GC: ParNew, ConcurrentMarkSweep
Memory: 947M
Cores: 4

Current Desktop: ubuntu:GNOME

 

0
2 comments

Well... It seems to be a question of having 'real' Python statements on the correct indented position for PyCharm to recognize the structure.

0

Hi,

This is a known issue https://youtrack.jetbrains.com/issue/PY-39987

Please vote for it and feel free to comment.

0

Please sign in to leave a comment.