www.digitalmars.com         C & C++   DMDScript  

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

https://issues.dlang.org/show_bug.cgi?id=19254

          Issue ID: 19254
           Summary: Change exception output format to be "file link"
                    friendly
           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
knowledge.

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