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

H. S. Teoh hsteoh at quickfur.ath.cx
Sat Jan 12 16:32:43 UTC 2019


On Sat, Jan 12, 2019 at 04:23:53PM +0000, Seb via Digitalmars-d wrote:
> On Saturday, 12 January 2019 at 16:17:07 UTC, H. S. Teoh wrote:
> > Awesome!
> > 
> > It's about time dmd error messages got a facelift.  Will
> > -verrors=context eventually become the default?
> 
> 
> Yes, I hope so!
> Once it has gotten a fair bit of real-world feedback and testing
> (which is the one of the reasons why I opened this thread) we can
> enable it by default if a TTY is detected.
> 
> TTY detection is probably necessary as there are still a lot of
> programs (especially editor plugins) which parse the DMD output.
[...]

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

-- 
Life is too short to run proprietary software. -- Bdale Garbee


More information about the Digitalmars-d mailing list