[Lazarus] TLazPackageGraph.CheckCompileNeedDueToDependencies: perhaps compile more than now?

Reinier Olislagers reinierolislagers at gmail.com
Thu Oct 25 12:28:27 CEST 2012


On 25-10-2012 12:05, Mattias Gaertner wrote:
> 
> Reinier Olislagers <reinierolislagers at gmail.com> hat am 25. Oktober 2012 um
> 10:29 geschrieben:
>> In this code in packager\packagesystem.pas, the if Result<>mrOK test
>> gives a note unable to load state file.. and the procedure exits:
>>
>> // check compile state file of required package
>> if not RequiredPackage.AutoCreated then begin
>> Result:=LoadPackageCompiledState(RequiredPackage,false,true);
>> if Result<>mrOk then begin
> 
> Here: file broken, user was told that file is broken and user had a choice of
> cancel or cancel all (=mrAbort).
> File broken means that the pkgname.compiled file has an invalid format, syntax
> error. The user or some external tool has altered the file. Maybe on purpose.
> The IDE should not silently replace the file.

Ok, thanks, Matthias.





More information about the Lazarus mailing list