[Lazarus] How to find out why a unit is used in a project?

Mattias Gaertner nc-gaertnma at netcologne.de
Wed Sep 23 20:51:54 CEST 2020


On Wed, 23 Sep 2020 18:59:58 +0200
Bo Berglund via lazarus <lazarus at lists.lazarus-ide.org> wrote:

>[...]
> Now when I try to compile it throws an error inside a unit I did not
> even know it used. And to further complicate the issue I cannot find a
> reference to the unit in question when doing a search in the project
> dir inside all pas files. This unit is not mentioned anywhere and
> still causes a compile error due to a missing reference.
> 
> I tried Lazarus Find In Files and set it to search "all files in
> project" and also search the project directory, but it comes up
> empty-handed...
> 
> So now I wonder:
> Is there a Lazarus tool to trace why the unit is referenced in the
> first place? Is there such things as "chain of uses"?

View / Unit Dependencies

Mattias


More information about the lazarus mailing list