[Lazarus] IDE Ctrl+W key

Mattias Gaertner nc-gaertnma at netcologne.de
Mon Mar 18 18:57:00 CET 2019


On Sun, 17 Mar 2019 19:54:35 -0400
Dmitry Boyarintsev via lazarus <lazarus at lists.lazarus-ide.org> wrote:

>[...]
> > Are you aware that if Ctrl+Space fails it jumps to the syntax error?
> 
> Yes. And it's irritating, because I do remember when Ctrl+Space used
> to work even with incomplete sources.

Ctrl+Space always jumped to an error.
Although over the years codetools parser matured. So some syntax, that
was formerly skipped/ignored, now raises an error. Maybe you mean
this?


> I often trying to use Ctrl+Space to complete the word on incomplete
> sources. (because I don't remember an API, and I need a hint.).
> But instead of showing me a list of options, it just doesn't work or
> jumps somewhere else. (...and jumping can be turned off, yet it won't
> do anything useful).

IMO hiding an error is asking for trouble.
A good GUI must indicate somehow when the results are not reliable or
incomplete. For example by showing as first result a red line with the
error message, which when selected will jump to the error.
Then the user can deliberately choose to fix or ignore the error.

I guess that would substitute a good deal of word-completion. Although
word-completion is also much faster.

Mattias



More information about the lazarus mailing list