Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2012-07

Probable CodeTools error?

5 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Howard Page-Clark

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?

Reply by email

Mattias Gaertner
to Howard Page-Clark
Show quoted text 10 lines
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?

Mattias

Reply by email

Howard Page-Clark
to Mattias Gaertner
Mattias Gaertner wrote 13 lines
> 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)?

Howard

Reply by email

Mattias Gaertner
to Howard Page-Clark
Show quoted text 21 lines
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.

Mattias

Reply by email