Open chipkent opened 3 weeks ago
Oddly when I run this script, I get the same error with different line numbers.
Running full script:
Running selected line 10 p2 = Figure().plot_xy(t2, "X", "Y").show()
I'm not sure how to get the -1
line number shown in the ticket description. @chipkent curious if I'm doing something wrong for the reproduction here?
That said, even if the line number is positive, there are 2 issues I see here:
<string>
instead of providing a file name.I do actually see this same behavior in code studio, so I think this is something that we should create a ticket for there and address there as well. The line number issue is likely something we can address only there and get it for free in the extension. The filename may be more nuanced since vscode file could be something outside of what code studio is aware of and would need special handling.
@chipkent there's a possibility the -1
line numbers may be a Python bug fixed in 3.12
.
I was able to reproduce the -1
line numbers in 3.11.0
per reproduction steps here: https://github.com/python/cpython/issues/101400
I run this code with a known error on line 11.
Here is the error -- no mention of line 11 or even the file name: