mirror of https://gitlab.com/basile.b/dexed.git
messages, handle stack trace format
This commit is contained in:
parent
2202283ec4
commit
ef9b74cb23
|
@ -1056,8 +1056,8 @@ begin
|
||||||
if aMessage.isEmpty then
|
if aMessage.isEmpty then
|
||||||
exit;
|
exit;
|
||||||
rng.init(aMessage);
|
rng.init(aMessage);
|
||||||
rng.popUntil('(')^.popWhile('(');
|
rng.popUntil(['(', ':'])^.popWhile(['(', ':']);
|
||||||
lne := rng.takeUntil([',', ':', ')']).yield;
|
lne := rng.takeUntil([',', ':', ')', ' ']).yield;
|
||||||
if rng.front in [',', ':'] then
|
if rng.front in [',', ':'] then
|
||||||
col := rng.popWhile([',', ':'])^.takeUntil(')').yield;
|
col := rng.popWhile([',', ':'])^.takeUntil(')').yield;
|
||||||
result.y := strToIntDef(lne, -1);
|
result.y := strToIntDef(lne, -1);
|
||||||
|
@ -1078,9 +1078,9 @@ begin
|
||||||
exit;
|
exit;
|
||||||
// '(': line will be indicated after fname
|
// '(': line will be indicated after fname
|
||||||
// -mixin: dmd, error in mixin(token string) '<fname>-mixinXX<index>('
|
// -mixin: dmd, error in mixin(token string) '<fname>-mixinXX<index>('
|
||||||
if isEditable(ident.extractFileExt) and ((aMessage[i] = '(') or
|
if isEditable(ident.extractFileExt) and
|
||||||
((aMessage[i] = '-') and (i < aMessage.length-5)
|
((aMessage[i] = '(') or (aMessage[i] = ':') or
|
||||||
and (aMessage[i..i+5] = '-mixin'))) then
|
((aMessage[i] = '-') and (i < aMessage.length-5) and (aMessage[i..i+5] = '-mixin'))) then
|
||||||
begin
|
begin
|
||||||
// absolute fname
|
// absolute fname
|
||||||
if ident.fileExists then
|
if ident.fileExists then
|
||||||
|
|
Loading…
Reference in New Issue