[Lazarus] How to get rid of duplicate ppu?
Mattias Gaertner
nc-gaertnma at netcologne.de
Wed Jun 11 21:22:22 CEST 2014
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.
> 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.
Mattias
More information about the Lazarus
mailing list