www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 19254] New: Change exception output format to be "file link"


          Issue ID: 19254
           Summary: Change exception output format to be "file link"
           Product: D
           Version: D2
          Hardware: x86
                OS: Mac OS X
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: ali.akhtarzada gmail.com

Currently DMD outputs exceptions with a file path that looks like:

core.exception.AssertError tests/optional.d(450): unittest failure

Since   and dot are valid filename chars, there's no way for generic IDEs to
and terminal plugins to "linkify" output without specific dmd exception

Maybe change to:

tests/optional.d(450): Exception core.exception.AssertError:  assert message

This will also match the error format:

tests/optional.d(447,9): Error: error message

Sep 20 2018