Associate errors with the start line instead of the end line (Better Syntax Errors as in Python 3.10) #2118
Labels
fixed in next version (main)
A fix has been implemented and will appear in an upcoming version
Current behaviour
Write the following code:
Error message should be assocated with the line containing
print(
, not error in linexyz
.Python 3.10 does a great job here (that's one of the most popular features announced in 3.10, at least from what I've seen when users publish articles about 3.10).
This is crucial for Notebooks as the errors are now associated with the first line of the next cell.
See below
Things get even worse if you have markdown cells (see below), as user has no clue what's wrong now.
Expected behaviour
Notebook users should not have to look for errors in the preceeding cell and figure out what's wrong (developer tools like LS should hel;p users figure it out). With notebooks users have to go to previous cell and look for errors there.
Syntax Errors should be handled as done in Python 3.10
![image](https://user-images.githubusercontent.com/1948812/143942612-b7f510cf-547e-4ddc-8414-64a89b19886a.png)
Originally reported here microsoft/vscode-jupyter#6556
The text was updated successfully, but these errors were encountered: