Actions
Feature #19451
openExtract path and line number from SyntaxError?
Feature #19451:
Extract path and line number from SyntaxError?
Status:
Open
Assignee:
-
Target version:
-
Description
There doesn't seem to be any official way to extract the path and line number from a syntax error.
There are two ways I can see us dong this:
- Provide explicit
path
andline_number
attributes. - Prepend them to
backtrace_locations
.
The nice thing about the latter approach is that it will just work with existing tools which understand how to highlight code based on backtrace locations.
Maybe we should do both?
Actions