mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-22 13:39:30 +02:00
IDE: check inter pkg files: verbosity on inconsistency
git-svn-id: trunk@49130 -
This commit is contained in:
parent
54166afa19
commit
73c9b15957
@ -6016,6 +6016,7 @@ resourcestring
|
||||
synfMatchActionButtonOfMouseDown = 'Match action button of mouse down';
|
||||
synfMatchActionModifiersOfMouseDown = 'Match action modifiers of mouse down';
|
||||
synfContinueWithNextMouseUpAction = 'Continue with next mouse up action';
|
||||
lisDuplicateUnitIn = 'Duplicate unit "%s" in "%s"';
|
||||
implementation
|
||||
|
||||
end.
|
||||
|
@ -60,7 +60,7 @@ uses
|
||||
ProjectIntf, CompOptsIntf, IDEWindowIntf, LazIDEIntf, IDEImagesIntf,
|
||||
IDEMsgIntf, IDEExternToolIntf,
|
||||
// IDE
|
||||
CompilerOptions, EnvironmentOpts, IDEProcs, DialogProcs,
|
||||
CompilerOptions, EnvironmentOpts, IDEProcs, DialogProcs, LazarusIDEStrConsts,
|
||||
TransferMacros, LazConf, IDECmdLine, PackageDefs, PackageSystem, InputHistory;
|
||||
|
||||
type
|
||||
@ -177,11 +177,11 @@ begin
|
||||
if (SrcFile=nil) and (PPUFile=nil) then
|
||||
RaiseException('');
|
||||
if (SrcFile<>nil) and (PPUFile<>nil) and (PPUFile.OwnerInfo<>SrcFile.OwnerInfo) then
|
||||
RaiseException('');
|
||||
RaiseException('bug: not equal: PPUFile.OwnerInfo='+PPUFile.OwnerInfo.Name+' SrcFile.OwnerInfo='+SrcFile.OwnerInfo.Name);
|
||||
if (SrcFile<>nil) and FilenameIsCompiledSource(SrcFile.ShortFilename) then
|
||||
RaiseException('');
|
||||
RaiseException('bug: src is compiled file: SrcFile.Filename='+SrcFile.FullFilename);
|
||||
if (PPUFile<>nil) and not FilenameIsCompiledSource(PPUFile.ShortFilename) then
|
||||
RaiseException('');
|
||||
RaiseException('bug: compiled file is source:'+PPUFile.FullFilename);
|
||||
Result:=length(CompiledFiles);
|
||||
SetLength(CompiledFiles,Result+1);
|
||||
SetLength(Sources,Result+1);
|
||||
@ -925,14 +925,14 @@ var
|
||||
PPUFile:=FileGroup.CompiledFiles[i];
|
||||
if SrcFile<>nil then
|
||||
begin
|
||||
Msg:='Duplicate unit "'+SrcFile.AnUnitName+'"';
|
||||
Msg+=' in "'+SrcFile.OwnerInfo.Name+'"';
|
||||
Msg:=Format(lisDuplicateUnitIn, [SrcFile.AnUnitName, SrcFile.
|
||||
OwnerInfo.Name]);
|
||||
if PPUFile<>nil then
|
||||
Msg+=', ppu="'+PPUFile.FullFilename+'"';
|
||||
Msg+=', source="'+SrcFile.FullFilename+'"';
|
||||
end else begin
|
||||
Msg:='Duplicate unit "'+PPUFile.AnUnitName+'"';
|
||||
Msg+=' in "'+PPUFile.OwnerInfo.Name+'"';
|
||||
Msg:=Format(lisDuplicateUnitIn, [PPUFile.AnUnitName, PPUFile.
|
||||
OwnerInfo.Name]);
|
||||
Msg+=', orphaned ppu "'+PPUFile.FullFilename+'"';
|
||||
end;
|
||||
if IDEMessagesWindow<>nil then
|
||||
|
Loading…
Reference in New Issue
Block a user