Sign in Join

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

Mailing lists / lazarus / 2016-07

Lazarus tool tips/code completion do not work, why?

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

Bo Berglund

I am coding a command line utility in Lazarus 1.6 with FPC 3.0 on Raspberry Pi (Raspbian Jessie).

When I write for example
FSSComm.
I expect the tooltips to appear afterr I type the period giving me a choice of valid FSSComm properties to select from. But what really happens is nothing at all in the code editor. But in back of it the Messages window shows an error:

Codetools, Errors: 1
IdGlobal.pas(1884,56) Error: expected ;, but deprecated found

And when I click that message I am trown into a completely unrelated unit IdGlobals belonging to Indy10, which is in a package indylaz I have installed successfully in Lazarus:

  {$IFDEF UNIX}
  // For linux the user needs to set this variable to be accurate

where used (mail, etc)
GOffsetFromUTC: TDateTime = 0 {$IFDEF
HAS_DEPRECATED}deprecated{$ENDIF}; <== Error here all on one line

What does this mean and how is it related to the code editor at all? The program compiles just fine with no errors, it is just the coding that is less efficient when i have to go back and forth between units to get the correct property names and then type them in...

Can it be configured so that the tool tips start working? And why are tool tips involved in the first place?

Bo Berglund Developer in Sweden

Reply by email

Mattias Gaertner
to Bo Berglund
When I write for example FSSComm. I expect the tooltips to appear

Note: This is the "completion box", in this case the "identifier completion". "Tooltips" is the hint window which appears when you move a mouse over an identifier.

Show quoted text 6 lines
[...] Codetools, Errors: 1 IdGlobal.pas(1884,56) Error: expected ;, but deprecated found And when I click that message I am trown into a completely unrelated unit IdGlobals belonging to Indy10,

Why do you think the unit is unrelated?
Are you using Indy units in your uses clause?

Show quoted text 9 lines
which is in a package indylaz I have installed successfully in Lazarus: {$IFDEF UNIX} // For linux the user needs to set this variable to be accurate where used (mail, etc) GOffsetFromUTC: TDateTime = 0 {$IFDEF HAS_DEPRECATED}deprecated{$ENDIF}; <== Error here all on one line

Lazarus 1.6 and 1.7 parse this line without problems. I didn't test with the Indy10 sources.

Can you create a minimized version of the IdGlobals unit demonstrating the problem?

[...]

Mattias

Reply by email