Hello!
I'm considering switching the default formatting style for printed diagnostics to the equivalent of -diagnostic-style swift
, but only when outputting in color (so with color disabled we'd still use the LLVM-style formatting). Before I go ahead with the change there's a couple of points I wanted to raise:
-
By default, the diagnostic output with this change would be 2-3x larger on average because of the extra context that gets displayed. I'd argue the extra information is worth it but it's definitely a tradeoff.
-
This would break any tools that rely on parsing the compiler's output if they don't use
-no-color-diagnostics
(even though we don't guarantee stability). I'm assuming that if I leave the-no-color-diagnostics
default unchanged breakage should be pretty minimal, but it would be great to know if anyone has any use cases that rely on the existing color output.
Feel free to let me know if you have any comments or concerns!
Thanks,
Owen