"IndentationError: unexpected indent" in Python Console when pressing "SHIFT + ALT + E" [PyCharm 2016.3]
PyCharm Version 2016.3
Python Console
Example Code:
class FUN(object):
def __init__(self):
self.a = 1
def process_fun(self):
buffer = load_my_data()
self.a = len(buffer)
Given the above exmple code: I want to interactively execute one or more lines again e.g.
buffer = load_my_data()
To do so, I move the curser on the line an press "SHIFT + ALT + E" This worked in ALL previeous versions of PyCharm and now it fails, because this line of code is copied into the Python Console with indentation!!! Thus I get the Error message:
>>> buffer = load_my_data()
...
File "<input>", line 1
buffer = load_my_data()
^
IndentationError: unexpected indent
This is a CRITICAL DRAWBACK in terms of functionality and usability!
I expect that executing one or more lines by pressing "SHIFT + ALT + E" will result in the correct indentation in the interactive python console! If this error is not fixed I will move back to PyCharm 2016.2
Cheers
Christof
Please sign in to leave a comment.
Hello Christof, thank you for the report. Please, follow https://youtrack.jetbrains.com/issue/PY-21653 for updates. See https://intellij-support.jetbrains.com/hc/en-us/articles/207241135-How-to-follow-YouTrack-issues-and-receive-notifications if you are not familiar with YouTrack.
Thanks, I will follow: https://youtrack.jetbrains.com/issue/PY-21653