Forum > Editor

Auto complete using ctrl space bar stopped working correctly

(1/1)

Joanna:
The key combo for opening the popup menu for auto completion suddenly stopped working. It now takes me to

TPersistent = class(TObject,IFPObserved)
on line 429 of classes.inc file

I have no idea of what i could have done to cause this

I'm using
Lazarus 2.0.12 r64642 FPC 3.2.0 x86_64-win64-win32/win64

I've tried clean up and build and starting a brand new project and it doesn't help..

Update..
i managed to get it to work again by restarting the IDE but I would still like to know what could have caused the strange behavior. >:D

Zaher:
please add Error message and Call stack list

Martin_fr:

--- Quote from: Joanna on April 21, 2022, 06:23:54 am ---i managed to get it to work again by restarting the IDE but I would still like to know what could have caused the strange behavior. >:D

--- End quote ---

Very hard to tell....

In general: Codetools does cache certain information. If that cache goes wrong, then unexplained errors happen.

What causes the cache to be wrong? No idea.

How to work around? Either
- restart the IDE
- edit text/source above the error pos (and/or at the start of the unit), and trigger a look-up (completion or jump to declaration ...) of the edited source. That usually clears any cache for sources below the edit.

-----------
As for getting more info: Menu: View > Ide Internals > Show Code Tool node info.
(Though I can't help you with interpreting it.... sorry)

Joanna:
Thanks for replies I’m not sure if there is any error message or call stack list because it’s happening while I’m trying to code. I’ll try some of the ideas here next time it happens.

zeljko:
If you're on linux then startlazarus from terminal and there you'll see errors

Navigation

[0] Message Index

Go to full version