go2sh / cmake-integration-vscode

CMake Server Interface for VSCode.
https://go2sh.github.io/cmake-integration-vscode/
Other
19 stars 11 forks source link

Problem matcher not working correctly for older gcc versions #57

Open moether opened 4 years ago

moether commented 4 years ago

I am facing following issue with older GCC versions (in my case we are tied to an ARM cross compiler 4.7.3 unfortunately). It stops the output parsing after a certain line.

This is the output when I invoke the build from command line: FAILED: CMakeFiles/test.dir/main.cpp.o /home/thomasm4/Downloads/gcc-linaro-arm-linux-gnueabihf-4.7-2013.01-20130125_linux/bin/arm-linux-gnueabihf-g++ -g -MD -MT CMakeFiles/test.dir/main.cpp.o -MF CMakeFiles/test.dir/main.cpp.o.d -o CMakeFiles/test.dir/main.cpp.o -c ../main.cpp In file included from ../main.cpp:1:0: ../one.h:1:17: fatal error: two.h: No such file or directory compilation terminated.

While this is the output from the VS Code output pane: [1/2] Building CXX object CMakeFiles/test.dir/main.cpp.o FAILED: CMakeFiles/test.dir/main.cpp.o /home/thomasm4/Downloads/gcc-linaro-arm-linux-gnueabihf-4.7-2013.01-20130125_linux/bin/arm-linux-gnueabihf-g++ -g -MD -MT CMakeFiles/test.dir/main.cpp.o -MF CMakeFiles/test.dir/main.cpp.o.d -o CMakeFiles/test.dir/main.cpp.o -c ../main.cpp In file included from ../main.cpp:1:0:

It never reaches the fatal error message, and therefore it is not shown in the problems pane of VS Code. Also, any other error / warning after that line is not parsed.

Plain simple code for reproduction using toolchain from https://releases.linaro.org/archive/13.01/components/toolchain/binaries/:

sample.zip