Search code examples
error-handlingeclipse-cdt

Eclipse CDT doesn't parse the console output


I'm using a batch file to build my project in Eclipse (I'm using the C51 compiler from Keil). The output is correctly displayed in the Eclipse Console view, but none of the error parsers seem to do absolutely anything.

I've tried the built-in parsers (although I knew I'd probably have to write my own), I've written my own error parser (which I've then checked to see if it works), I've even tried adding new rules to the existing parsers, without any luck. Not even this regex seems to work: (.*).

I've also tried using the RegEx Error Parser from iSystem; I've seen others who managed to successfully get it to work, but still nothing happened.

Has anyone had any luck in getting the error parser to correctly interpret the console output? I'm using the Helios Service Release 2 of the Eclipse CDT.


Solution

  • I've found the solution after cross-posting my question on the Eclipse CDT forum:

    The error parsers only work for the built-in build tools, so leave the builders as they are. Then, go to Project -> Properties -> C/C++ Build, deselect the Use default build command and add your own batch file. Do the same thing in the Behaviour tab for the Build on resource save (Auto build) and the Build (Incremental build) options.

    Afterwards, go to the Error Parsers tab in C/C++ Build\Settings and add your own error parser with the rules you want.