ThrowTheSwitch / Ceedling

Ruby-based unit testing and build system for C projects
http://throwtheswitch.org
Other
591 stars 247 forks source link

Compiler error messages mixed with Ceedling text #937

Closed radoslav06 closed 2 weeks ago

radoslav06 commented 1 month ago

It is very inconvenient that when compiler messages are forwarded to the stdout, the first line is prepended with ceedling text (and the last line is appended with quote character). It makes harder to parse compiler messages inside an IDE (or outside the IDE as well).

Example: first error is missed by the IDE, the second error is catch correctly:
image

Additionally, sometimes, the messages are displayed by the IDE with the " at the end that comes from Ceedling.

Proposed solution:

  1. Insert new line after EXCEPTION: ShellExecutionException ==> '<compiler_name>' (<compiler_exe>) terminated with exit code [<code>] and output >>
  2. Remove quotation characters " for the compiler messages or put them also in the separate lines.

I am using ceedling 1.0.0-a1e6b24 if that matters.

mkarlesky commented 2 weeks ago

Hi, @radoslav06. You're right. That's not a helpful log formatting, is it? It's fixed in the latest 1.0.0 prerelease. Apart from any last minute fixes, this is probably the very last change added to 1.0.0 before pushing it out as a proper release.