Hello,
I currently have a problem with how the file_regex config works in build_systems. My problem is with visual studio outputting all file in a relative way based on their .vcxproj location. Since my .sln include multiple .vcxproj located in different folder, I can’t seem to find a way for ST2 to open the error containing file correctly.
The errors message look like this:
1>…\tests\math\test_quaternion.cpp(103): error C2078: too many initializers
and I match them with the following build system configuration:
{
"name": "Build Gear 4 Win64",
"cmd":
"C:/Program Files (x86)/Microsoft Visual Studio 10.0/Common7/IDE/devenv.com",
"F:/p4/technology-group-playground/gear/team/solutions/win64/vc10/Gear4_win64.sln",
"/build",
"debug",
"/project",
"gear_core_win64_tests"
],
"file_regex": "^\\d>\\.\\\\\\w]*\\\\(\\w+\\.\\w+)\\((\\d+)\\):()\\s(.*)$"
}
My example line would provide only test_quaternion.cpp as the captured file name. but when I click on the error line, ST2 will try to open test_quaternion.cpp in the folder where my .sublime-project is located.
Is there a way to make ST2 search for the captured file name with the same algorithm as ctrl+p does? Using Goto Anything and typing test_quaternion.cpp:103 will get me exactly at the correct place.
I’m taking any suggestion you may have.
Thanks