Format of exceptions / errors: Exception at sourceLocation(lineNumber)

Andre Pany andre at s-e-a-p.de
Fri Mar 27 08:28:23 UTC 2020


Hi,

in Visual Studio Code terminal view, you can click on anything 
which looks like
a file location and the file is opened at the specified line 
number.

While this is working fine with the lines in the stacktrace 
generated by DMD,
it doesn't work for the very first line:

core.exception.AssertError at source/dt/concom/operator.d(43): 
Factory function dt.a.factory.create_processor not registered
----------------
??:? _d_assert_msg [0x7fb27ea8396a]
source/dt/concom/operator.d:44 dt.concom.operator.Operator 
dt.concom.operator.Operator.__ctor(std.json.JSONValue) 
[0x7fb27e89d1dd]

Here we have the format "Exception at sourceLocation(lineNumber): 
Text". The "Exception@"
breaks the forward navigation.

What do you think, should we as MS to support the "Exception@" 
format? Or should we change
the output on our side?

https://github.com/dlang/druntime/blob/master/src/object.d#L1914

Kind regards
André


More information about the Digitalmars-d mailing list