[Lazarus] How to get rid of duplicate ppu?
Michael Van Canneyt
michael at freepascal.org
Wed Jun 11 21:30:52 CEST 2014
On Wed, 11 Jun 2014, Mattias Gaertner wrote:
> On Wed, 11 Jun 2014 17:06:49 +0200 (CEST)
> Michael Van Canneyt <michael at freepascal.org> wrote:
>
>>
>>
>> On Wed, 11 Jun 2014, Mattias Gaertner wrote:
>> [...]
>> Maybe the IDE should check whether one of the paths points to the sources directory of a known package.
>
> The IDE now shows warnings for these cases.
>
>
>> If so, it could offer to replace the path with a dependency of the package.
>
> Good idea.
> Because of macros it can be tricky to find out, which path has added
> the directory. For some common cases it is possible. I added todos.
>
>
>> It happened not once that I saw a project where the author put explicitly the path to an existing package.
>
> I saw. Some people just don't like packages.
A pity, because Lazarus handles packages really SO much better than Delphi :(
>> The fix has always been to do as I described above...
>
> That's one half of the fix.
> The other is to explain to the user that packages are compiled
> separately, that fpc creates ppu files, which are like caches and
> duplicate caches are a mess.
Indeed. I never thought of it as a cache, but you are right.
Michael.
More information about the Lazarus
mailing list