messages, handle stack trace format

This commit is contained in:
Basile Burg 2017-02-11 20:27:20 +01:00
parent 2202283ec4
commit ef9b74cb23
No known key found for this signature in database
GPG Key ID: 1868039F415CB8CF
1 changed files with 5 additions and 5 deletions

View File

@ -1056,8 +1056,8 @@ begin
if aMessage.isEmpty then
exit;
rng.init(aMessage);
rng.popUntil('(')^.popWhile('(');
lne := rng.takeUntil([',', ':', ')']).yield;
rng.popUntil(['(', ':'])^.popWhile(['(', ':']);
lne := rng.takeUntil([',', ':', ')', ' ']).yield;
if rng.front in [',', ':'] then
col := rng.popWhile([',', ':'])^.takeUntil(')').yield;
result.y := strToIntDef(lne, -1);
@ -1078,9 +1078,9 @@ begin
exit;
// '(': line will be indicated after fname
// -mixin: dmd, error in mixin(token string) '<fname>-mixinXX<index>('
if isEditable(ident.extractFileExt) and ((aMessage[i] = '(') or
((aMessage[i] = '-') and (i < aMessage.length-5)
and (aMessage[i..i+5] = '-mixin'))) then
if isEditable(ident.extractFileExt) and
((aMessage[i] = '(') or (aMessage[i] = ':') or
((aMessage[i] = '-') and (i < aMessage.length-5) and (aMessage[i..i+5] = '-mixin'))) then
begin
// absolute fname
if ident.fileExists then