simvx.editor.error_nav¶
Error-navigation helpers — extract source locations from Python tracebacks.
Module Contents¶
Functions¶
Return |
Data¶
API¶
- simvx.editor.error_nav.__all__¶
[‘parse_traceback_source’]
- simvx.editor.error_nav.parse_traceback_source(tb: str, project_path: pathlib.Path | str | None = None) → tuple[str, int] | None[source]¶
Return
(file_path, line)of the last user frame in tb, orNone.When project_path is given, the last frame whose path sits inside the project wins — this hides engine/site-packages frames that sandwich user code in real tracebacks. Falls back to the last
File "…", line Nmatch overall if no project-local frame is present.