exec.py should html-escape (
html.escape) the build result message. Otherwise tracebacks like these suddenly end after
Traceback (most recent call last):
File "E:\Temp\default\exec.py", line 9, in <module>
ImportError: No module named 'sublime'
@ others: In order to make
exec.py parse build results and add them as phantom views,
View.find_all_results_with_text() was added. This wasn't mentioned before.
>>> e = window.create_output_panel("exec")
Running python -u "E:\Temp\default\exec.py"
[('/E/Temp/default/exec.py', 9, 0, ' File "E:\\Temp\\default\\exec.py", line 9, in <module>')]
@jps, @wbond: When revising build results parsing, I'd like to point to two different issues I've had with those that I reported here: https://github.com/SublimeTextIssues/Core/issues/938
My suggestion was to provide a mapping that allows selecting a specific match of a pattern and modifying that in case the match is not in a format we can use. I don't think this suggestion can be adjusted to support the error message being in the line(s) following filename, linenumber and column, though.