[Lazarus] Lazarus in trunk not working after Rev 50151 on MacOSX

Mattias Gaertner nc-gaertnma at netcologne.de
Tue Nov 3 17:34:46 CET 2015


On Tue, 3 Nov 2015 17:24:02 +0100
Ondrej Pokorny <lazarus at kluug.net> wrote:

> On 03.11.2015 17:08, Mattias Gaertner wrote:
> > Fixed.
> 
> How did you find it from the description? 

I didn't. I tested on OS X.

> You are a wizard :)
> Sorry for introducing the bug in my code. But I know how it happened: it 
> was introduced by CodeTools variable completion:
> 
> procedure TIDECommands.PostponeUpdateEvents;
> begin
>    FDontExecuteUpdateEventsUntil := GetTickCount64 + 500;
> end;

codetools use only a simple heuristic to calculate the type of a
binary operator.
The function TFindDeclarationTool.CalculateBinaryOperator needs to be
extended for Alias types (e.g. 'integer' instead of longint) and for
ranges (e.g. if the operands do not fit into an integer).


> Should I report it in the bug tracker?

Yes.

Mattias




More information about the Lazarus mailing list