Re:Do Developers Read Compiler Error Messages? [pdf]
by random_upvoter on Saturday July 31, 2021 @03:08PM
(#28020798)
As someone who at one time wrote a parser for the error output of gcc, clang AND cl, I can only upvote this tenfold. It was a minor nightmare with a ton of special cases, and the final result was a heuristic rather than a formally sound method. Even determining which lines of the output belonged to the same error message was a challenge. Suffice to say that no fun was had.
[ Parent
| on HN ]
Re:Do Developers Read Compiler Error Messages? [pdf]
by ghoward on Saturday July 31, 2021 @03:41PM
(#28020996)
Thank you for this. I am writing a compiler, and I have never thought about this before. I'll make sure my compiler can do this.
Any format you have a preference for?
Re:Do Developers Read Compiler Error Messages? [pdf]
by random_upvoter on Saturday July 31, 2021 @06:13PM
(#28021972)
Great that you would consider this! The format doesn't matter all that much to me... JSON is the thing of the moment, seems the most obvious choice. XML would be fine too.