Sublime Forum

Regexp patter to match runtime stacktraces in build window

#1

Hello,

build feature is great for building obviously but interpreted languages don’t have that and errors with stacktraces appear only in runtime, usually in test suites executed via the build feature.

Unfortunately, to make the whole stacktrace “clickable” I need to define regexp that matches all lines from the stacktrace which reports them all in the text editor. It looks ugly.

If there was a regexp in builder definition to match lines which are clickable but not reported into the text area as errors that would be great. Blocker for: https://github.com/sublimehq/Packages/pull/1706

Edit: Other solution might be to skip error if the message was parsed as an empty string. In that case, do not report it in the text area but the question arises if to jump to those places via keys or not.

0 Likes

#2

I’m just sad that the current system is even worse for Python because the exception is printed on a separate line (so you can’t capture it at all) and all traces in the stack, including the last one, look exactly the same (so you can only select all traces or none).

0 Likes