Sign in Join

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

Mailing lists / lazarus / 2003-03

Lazarus code completion bug

3 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

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

Mattias Gaertner
to Tony Maro: I just found that if the compiler defines come before the unit name, Lazarus refuses to…
Show quoted text 18 lines
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.

I just tested and it works. Can you send me the example?

Mattias

Show quoted text 13 lines
-- Tony Maro http://tony.maro.net/ Check out my software "CheckBook Tracker" A GPL (free) replacement for Microsoft Money! _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives

Reply by email

Tony Maro

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.

Tony Maro http://tony.maro.net/ Check out my software "CheckBook Tracker" A GPL (free) replacement for Microsoft Money!

Reply by email

Michael Van Canneyt
to Tony Maro
Tony Maro wrote 18 lines
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.

Reply by email