Hey all,
I am trying to get the build system to work properly using CMake and the gfortran compiler. Currently I have:
{
"cmd": "make", "-j3"],
"working_dir": "/home/youngmit/opt/mpact-debug",
"file_regex": "^(.+):([0-9]+).([0-9]+):.*$",
"line_regex": "^Error:\\s(.*)$"
}
which is very close to working, but not quite. The issure is that the error message and the file/line/column are on separate lines in the compiler output. Heres and example:
[code]/home/youngmit/…/file.f90:144.79:
CALL UTest_Assert(bool,144,'CALL testCMR%init() %angles%nrays FAILED!')l
1
Error: Syntax error in CALL statement at (1)
[/code]
When I hit F7, it goes through and builds, and the regular expressions detect the error, but hitting F4 just selects the line in the console corresponding to the error message, rather than opening up the offending file. If I remove the line_regex, F4 will take me to the location in the file where the file_regex matches, but this ends up including errors and warnings, when I really only want to cycle through errors. I also tried making a regex for fille_regex that matches the entire multi-line error message, but again, hitting F4 just sends me to the lines in the console that match, rather than to the file of interest. Any ideas?
Thanks!