You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently if you validate python code then you just get a list of errors. It would be good to be able to translate that list into a human readable representation. The output would give a succinct explanation of the error, and use the original source file + the annotations in the error to pull out relevant areas of the code so we can pinpoint the bits that caused the error.
For example, if we validate this code:
def a():
x = 1
y = x + b
return y
we could get an error message like:
Line 3: 'b' is not in scope
2 | x = 1
3 | y = x + b
^
4 | return y
The text was updated successfully, but these errors were encountered:
Currently if you validate python code then you just get a list of errors. It would be good to be able to translate that list into a human readable representation. The output would give a succinct explanation of the error, and use the original source file + the annotations in the error to pull out relevant areas of the code so we can pinpoint the bits that caused the error.
For example, if we validate this code:
we could get an error message like:
The text was updated successfully, but these errors were encountered: