nedpals / errgoengine

Contextualized programming error analysis translation engine

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[ERROR TEMPLATE] Python - IndentationError

nedpals opened this issue · comments

commented
Name Type Code Language
IndentationError Compile-time Error python.lang.IndentationError Python

Description

Raised when indentation is not correctly specified.

Sample Code

def my_function():
    print("Hello, world!")
  print("This line is indented with two spaces instead of four.")

Sample Error Message

  File "indentation_error.py", line 3
    print("This line is indented with two spaces instead of four.")
                                                                  ^
IndentationError: unindent does not match any outer indentation level

Implementation Checklist

  • Implemented analysis
  • Implemented explanation translation
  • Implemented bug fix generation
  • Add tests