Sublime Forum

Build system regex improvement

#22

Yeah, as FichteFoll says, piping error output through some utility that makes it sane seems to be a fact of life since tool writers seem to find so many novel ways to screw up error reporting. I do that with a hyper-verbose compiler which seems to think 10+ lines of output for each error or warning is a good idea.

1 Like

#23

Yes, that seems like a reasonable workaround, but I think the more elegant solution would be to add some flexibility to Sublime on this. Since Sublime is script-able, why not provide a way to script this rather than the simplistic regex? Even supporting named groups in the regex would help a lot.

1 Like

#24

The entire build system is scripted in Python from what I can tell. If you go into the ā€œDefaultā€ package and look at exec.py you’ll find code for the build system. I’ve already hacked that to change the inline errors as per my above comment, I’m sure you could replace the regexes too, but I haven’t looked into it.

0 Likes