mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-10-27 06:01:47 +01:00
IDE: msg quickfix for cant ind unit: add position
git-svn-id: trunk@36943 -
This commit is contained in:
parent
83955969ef
commit
d3edadab4a
@ -537,7 +537,7 @@ begin
|
|||||||
if PPUFilename<>'' then begin
|
if PPUFilename<>'' then begin
|
||||||
// there is a ppu file, but the compiler didn't like it
|
// there is a ppu file, but the compiler didn't like it
|
||||||
// => change message
|
// => change message
|
||||||
s:='Fatal: Can not find '+MissingUnitname;
|
s:='Can not find '+MissingUnitname;
|
||||||
if UsedByUnit<>'' then
|
if UsedByUnit<>'' then
|
||||||
s+=' used by '+UsedByUnit;
|
s+=' used by '+UsedByUnit;
|
||||||
s+=', ppu='+CreateRelativePath(PPUFilename,Dir);
|
s+=', ppu='+CreateRelativePath(PPUFilename,Dir);
|
||||||
@ -546,14 +546,14 @@ begin
|
|||||||
end else if PkgName<>'' then begin
|
end else if PkgName<>'' then begin
|
||||||
// ppu is missing, but the package is known
|
// ppu is missing, but the package is known
|
||||||
// => change message
|
// => change message
|
||||||
s:='Fatal: Can''t find ppu of unit '+MissingUnitname;
|
s:='Can''t find ppu of unit '+MissingUnitname;
|
||||||
if UsedByUnit<>'' then
|
if UsedByUnit<>'' then
|
||||||
s+=' used by '+UsedByUnit;
|
s+=' used by '+UsedByUnit;
|
||||||
s+='. Maybe package '+PkgName+' needs a clean rebuild.';
|
s+='. Maybe package '+PkgName+' needs a clean rebuild.';
|
||||||
end;
|
end;
|
||||||
end else begin
|
end else begin
|
||||||
// there is no ppu file in the unit path
|
// there is no ppu file in the unit path
|
||||||
s:='Fatal: Can not find unit '+MissingUnitname;
|
s:='Can not find unit '+MissingUnitname;
|
||||||
if UsedByUnit<>'' then
|
if UsedByUnit<>'' then
|
||||||
s+=' used by '+UsedByUnit;
|
s+=' used by '+UsedByUnit;
|
||||||
if PkgName<>'' then
|
if PkgName<>'' then
|
||||||
@ -564,7 +564,9 @@ begin
|
|||||||
s+=' of package '+TIDEPackage(UsedByOwner).Name;
|
s+=' of package '+TIDEPackage(UsedByOwner).Name;
|
||||||
s+='.';
|
s+='.';
|
||||||
end;
|
end;
|
||||||
Msg.Msg:=s;
|
Msg.GetSourcePosition(Filename,Line,Col);
|
||||||
|
Msg.Msg:=CreateRelativePath(Filename,Msg.Directory)
|
||||||
|
+'('+IntToStr(Line)+','+IntToStr(Col)+') Fatal: '+s;
|
||||||
end;
|
end;
|
||||||
finally
|
finally
|
||||||
Owners.Free;
|
Owners.Free;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user