Sublime Text generator regular expressions do not match MSVC diagnostics
I've already asked about it on StackOverflow. Every time you run a .sublime-project target you can't open properly the files/errors.
I've started using cmake 3.7.0-rc1 few hours ago and I'm wondering what's wrong with the build systems generated for SublimeText, here's an example of one of the provided build systems:
{
"name": "Project - all",
"cmd": ["nmake", "/NOLOGO", "/f", "Makefile", "VERBOSE=1", "all"],
"working_dir": "${file_path}",
"file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$"
}
But using that file_regex is not working at all with my error lines, instead I need to use something similar to this:
{
"name": "Project - all",
"cmd": ["nmake", "/NOLOGO", "/f", "Makefile", "VERBOSE=1", "all"],
"working_dir": "${file_path}",
"file_regex": "^([^(]+)\\((\\d+)\\):\\s*()(.*)$"
}
My error lines look like this:
D:\sources\personal\python\console\swig_tests\tutorial1\tutorial.cxx(11): error C2065: 'output_value': undeclared identifier
D:\sources\personal\python\console\swig_tests\tutorial1\tutorial.cxx(13): error C2065: 'output_value': undeclared identifier
D:\sources\personal\python\console\swig_tests\tutorial1\tutorial.cxx(15): error C2065: 'ret': undeclared identifier
So, is this a well-known issue/bug with CMake or I'm missing something?