Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

line number of error in .sage file

When sage reports an error, it reports the line number of the .py file where the error occured. I am wondering if there is a way to configure sage so that it instead reports the line number of the code in the .sage file that ultimately generated that problematic line in the .py file.

This would be useful because it is the .sage file that I am actually editing.

This is theoretically possible: other languages and transpilers use sourcemaps to solve this same issue.