2

I am getting an indentation error in the Python interpreter while using elpy:

>>> for i in range(1, 3):
...     print(i)
  File "<stdin>", line 1
    print(i)
    ^
IndentationError: unexpected indent

I have tried with manually typing 4 spaces to ensure it wasn't the tab key. It seems as if the interpreter is getting some extra whitespace from the buffer but I am not sure. What could be causing this?

  • 1
    Well, turns out there is a bug filed for this. Disabling company-mode and not triggering the built-in auto complete seems to fix it for me. – jsl Aug 28 '16 at 16:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.