exec.py
should html-escape (html.escape
) the build result message. Otherwise tracebacks like these suddenly end after in
:
Traceback (most recent call last):
File "E:\Temp\default\exec.py", line 9, in <module>
import sublime
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.find_all_results_with_text()
[('/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.