mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-25 12:20:22 +02:00
IDE: messages: show all compiler messages beginning with a time stamp
git-svn-id: trunk@20169 -
This commit is contained in:
parent
3854d50417
commit
90b6e6e5a5
@ -787,6 +787,10 @@ begin
|
|||||||
while (i<=length(s)) and (s[i] in ['0'..'9','.']) do inc(i);
|
while (i<=length(s)) and (s[i] in ['0'..'9','.']) do inc(i);
|
||||||
if (i<=length(s)) and (s[i]=']') then inc(i);
|
if (i<=length(s)) and (s[i]=']') then inc(i);
|
||||||
while (i<=length(s)) and (s[i] in [' ']) do inc(i);
|
while (i<=length(s)) and (s[i] in [' ']) do inc(i);
|
||||||
|
// the user enabled extreme verbosity
|
||||||
|
// show all
|
||||||
|
DoAddFilteredLine(Copy(s, i, length(s)));
|
||||||
|
exit(true);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
// check for 'Compiling <filename>'
|
// check for 'Compiling <filename>'
|
||||||
|
@ -313,22 +313,36 @@ function ParseFPCMessage(const Line: string; out Filename: string; out
|
|||||||
<filename>(456) <ErrorType>: <some text> in line (123)
|
<filename>(456) <ErrorType>: <some text> in line (123)
|
||||||
Fatal: <some text>
|
Fatal: <some text>
|
||||||
}
|
}
|
||||||
var StartPos, EndPos: integer;
|
var
|
||||||
|
StartPos, EndPos: integer;
|
||||||
begin
|
begin
|
||||||
Result:=false;
|
Result:=false;
|
||||||
if copy(Line,1,7)='Fatal: ' then begin
|
StartPos:=1;
|
||||||
|
|
||||||
|
// skip time [0.000]
|
||||||
|
if (Line<>'') and (Line[StartPos]='[') then begin
|
||||||
|
inc(StartPos);
|
||||||
|
while (StartPos<=length(Line)) and (Line[StartPos] in ['0'..'9','.']) do
|
||||||
|
inc(StartPos);
|
||||||
|
if (StartPos<=length(Line)) and (Line[StartPos]=']') then
|
||||||
|
inc(StartPos);
|
||||||
|
while (StartPos<=length(Line)) and (Line[StartPos] in [' ']) do
|
||||||
|
inc(StartPos);
|
||||||
|
end;
|
||||||
|
|
||||||
|
if copy(Line,StartPos,7)='Fatal: ' then begin
|
||||||
Result:=true;
|
Result:=true;
|
||||||
Filename:='';
|
Filename:='';
|
||||||
MsgType:=etFatal;
|
MsgType:=etFatal;
|
||||||
exit;
|
exit;
|
||||||
end;
|
end;
|
||||||
if copy(Line,1,7)='Panic: ' then begin
|
if copy(Line,StartPos,7)='Panic: ' then begin
|
||||||
Result:=true;
|
Result:=true;
|
||||||
Filename:='';
|
Filename:='';
|
||||||
MsgType:=etPanic;
|
MsgType:=etPanic;
|
||||||
exit;
|
exit;
|
||||||
end;
|
end;
|
||||||
StartPos:=1;
|
|
||||||
// find filename
|
// find filename
|
||||||
EndPos:=StartPos;
|
EndPos:=StartPos;
|
||||||
while (EndPos<=length(Line)) and (Line[EndPos]<>'(') do inc(EndPos);
|
while (EndPos<=length(Line)) and (Line[EndPos]<>'(') do inc(EndPos);
|
||||||
|
Loading…
Reference in New Issue
Block a user