Sublime Forum

file_regex not working with error message

#1

I am trying to set up an SCons build system in ST3. However, when I try to set up my file_regex to include the error message and show it in the status bar at the bottom, everything breaks–F4 no longer works to jump to the file/line/column of the error. If I remove the fourth group (for the error message), everything works like a charm.

Here is a snippet of my compiler output:

scons: done reading SConscript files. scons: Building targets ... Compiling (C++): project/Task1/obj/Task1.o project/Task1/Task1.cpp:18:1: error: 'sdf' does not name a type scons: *** [project/Task1/obj/Task1.o] Error 1 scons: building terminated because of errors.

In my sublime-build file, the following regex WORKS PERFECTLY (it DOES jump to the file/line/column of the error), but it DOES NOT include my error message:

"file_regex": "(.*?\\..*?):([0-9]+):([0-9]+):"

HOWEVER, the following regex DOES NOTHING other than highlight the error in the command window (it DOES NOT jump to the file/line/column of the error, nor does it show the error message in the status bar):

"file_regex": "(.*?\\..*?):([0-9]+):([0-9]+): error: (.*?)\\n"

Any ideas?

0 Likes