Sublime Forum

How can I remove the path from errors in build output

#1

I’d like to filter out the path of each error to make my build output easier to read. Ideally it should just say the line of the error and the code at that line.

Quiet in the build options does not work.

0 Likes

#2

Sublime captures the output of the program you’re running and displays it directly into the output panel (with the addition of extra debug output of it’s own that quiet turns off), so if you want some of the output to not show up you need to modify whatever you’re running to do that before the output gets to Sublime.

In your case that would probably involve a windows batch file that executes the Python script and filters the output for you, though I don’t know offhand what sort of tool you’d use for that (on MacOS or Linux you’d use grep, for example).

0 Likes