My late christmas present for you: context-aware assertion error messages

Seb seb at wilzba.ch
Sat Jan 12 16:52:28 UTC 2019


On Saturday, 12 January 2019 at 16:32:43 UTC, H. S. Teoh wrote:
>
> Seriously, for editor/IDE plugins, there should be a 
> --porcelain option that outputs error messages in a 
> machine-friendly format, like with a fixed format that's easy 
> for scripts / code / whatever to parse.
>
>
> T

It probably would be -verrors=json (or sth. like this), but the 
problem is that tools which parse DMD output are already out 
there, so we need to be a bit careful not to break them.

Anyhow, I think using TTY detection to enable -verrors=context by 
default should work fine.
DMD did/does the same when color-coded messages (`-color` ) where 
introduced.


More information about the Digitalmars-d mailing list