jvalcher / gcc_error_formatter

Produces easy-to-read GCC error messages
5 stars 1 forks source link

I've deprecated the JSON output format in GCC 15 #2

Open davidmalcolm opened 3 weeks ago

davidmalcolm commented 3 weeks ago

Thanks for writing this; I really like the output styling.

I wasn't aware of anyone actually using GCC's "json" output format, and so I marked it as deprecated for GCC 15 here: https://gcc.gnu.org/pipermail/gcc-patches/2024-October/664969.html

As I said there, I'm focusing on SARIF for machine-readable diagnostics from GCC going forward (see https://gcc.gnu.org/wiki/SARIF ). Does porting to SARIF work for you, or does the "json" format have benefits I've overlooked?

Thanks!

jvalcher commented 3 weeks ago

Thank you so much! I was working on my rite-of-passage C app, termfu, and decided every little emotional health win counts.

So that's why it was so hard to find anything on it. I do very much appreciate the update, and if my five-star repo by itself isn't enough to convince you not to deprecate json output, then I suppose you should press on with SARIF. I'm not familiar with it, but it looks pretty straightforward and there appears to be some Python support. In the end, you must do what you're heart tells you... but I should be fine.

Best of luck with the new version!