[Lazarus] Probable CodeTools error?
nc-gaertnma at netcologne.de
Thu Jul 5 19:56:35 CEST 2012
On Thu, 05 Jul 2012 18:11:00 +0100
Howard Page-Clark <hdpc at talktalk.net> wrote:
> On 05/7/12 5:33, Mattias Gaertner wrote:
> >> In recent Lazarus trunk revisions (running under Win 7, 32-bit) I get
> >> CodeTools errors on units that specify unneeded units in the uses
> >> clause (usually Classes or SysUtils).
> >> The Messages window error message includes a negative line number
> >> something along the lines of
> >> unit1.pp(-1,7) Error: unit not found: Classes
> >> Does anyone else find this?
> > Maybe you updated your compiler?
> > Have you tried Tools / Rescan FPC source directory?
> Thanks for the prompt response. Indeed I had updated the compiler, and
> rescanning the source directory clears the problem.
> Is it possible for the code tools to be aware of an updated compiler and
> warn (or automatically rescan)?
It does in many cases, but not in all. Scanning everything every time
would be too slow.
More information about the Lazarus