[lazarus] Lazarus code completion bug

Michael Van Canneyt michael.vancanneyt at wisa.be
Wed Mar 26 03:08:39 EST 2003




On 25 Mar 2003, Tony Maro wrote:

> I just found that if the compiler defines come before the unit name,
> Lazarus refuses to do code completion.
>
> For instance, the http.pp file contains:
>
> {$MODE objfpc}
> {$H+}
> unit HTTP;
>
> Which breaks code completion for the entire project unless you change it
> to read:
>
> unit HTTP;
> {$MODE objfpc}
> {$H+}
>
> Sure, the first one is likely incorrect, but that's from the FPC
> directory, and it compiles fine.

The first one IS the correct one.
Normally, the {$MODE} should always be BEFORE the unit statement,
as it is a global switch.

Michael.






More information about the Lazarus mailing list