[Lazarus] FPC source index

Mattias Gaertner nc-gaertnma at netcologne.de
Fri Jun 21 10:15:45 CEST 2013


> Henry Vermaak <henry.vermaak at gmail.com> hat am 20. Juni 2013 um 11:17
> geschrieben:
>[...]
>
> On Wed, Jun 19, 2013 at 07:49:27PM +0200, Mattias Gaertner wrote:
> > On Wed, 19 Jun 2013 15:16:33 +0100
> > Henry Vermaak <henry.vermaak at gmail.com> wrote:
> >
> > > Hi list
> > >
> > > Is there a way to force the "Rescan FPC Source Directory" to not run in
> > > OnIdle?

Note: The FPC source directory is scanned in a thread not in idle. Unless you
compiled with -dDisableMultiThreading.
Compile with -dVerboseFPCSrcScan to see in the terminal what is happening.


> > > I've got an ARM computer with slow storage and I thought I'd leave the
> > > IDE for a while to wait for this operation to finish, only to realise
> > > that nothing happens when I'm not moving the mouse around/typing. The
> > > IDE is a bit useless without the ability to Ctrl-click my way around,
> > > but I got tired waving the mouse around after 5 minutes.
> >
> > Many IDE tasks run on idle. The idle event is crucial for the LCL
> > itself.
>
> How does the IDE make sure these things keep running when there's no
> activity? Do you use OnIdleEnd? Or do you set Done := False in the
> OnIdle handler?

Most have only one task.
Those that update in several steps use Done:=false.


> > What widgetset?
>
> It's gtk2, on some recent flavour of Ubuntu. Without the source index,
> it seems like I can't even double click on events in the object
> inspector to create handlers, since it tells me that Classes can't be
> found.

Yes. Many events use 'Sender: TObject' which is defined in classes.

> It's happy building existing projects, though.


Mattias




More information about the Lazarus mailing list