Vscode-cpptools: gcc problem matcher does not catch fatal errors

Created on 30 May 2019  路  2Comments  路  Source: microsoft/vscode-cpptools

$gcc problem matcher does not match fatal errors
Possible solution would be:
"regexp": "^(.):(\d+):(\d+):\s+(?:fatal )?(warning|error):\s+(.)$"
It would be great to also catch linker errors, like undefined reference as an errors

bug builtasks fixed (release pending) quick fix verified

Most helpful comment

I fixed the fatal error. I don't know of a way to get the linker errors to match, because they don't have a column or severity in the message...well, it's easy to create a pattern that will match with a column/severity omitted, but I don't how to get the problem matcher to match the linker and non-linker styles at the same time.

All 2 comments

I fixed the fatal error. I don't know of a way to get the linker errors to match, because they don't have a column or severity in the message...well, it's easy to create a pattern that will match with a column/severity omitted, but I don't how to get the problem matcher to match the linker and non-linker styles at the same time.

Fixed with 0.24.0-insiders (available by setting "C_Cpp.updateChannel" to "Insiders").

Was this page helpful?
0 / 5 - 0 ratings