Hi Martin,
I did some testing but do not know know how to make a log while doing something in Lazarus. But this is what goes wrong within Codetools options, I can reproduce it on my pc.
Lazarus RC4.0RC2
Windows 11 64-bits, 32,0 GB memory, i9-12900HK.
Install Lazarus, first create a folder: C:\Lazarus_4rc2, start the Exe file, make it a secondary installation.
Create a new folder: C:\Lazarus_4rc2\Config\ and use this for the config files.
Start Lazarus, menu, Tools, Options... --> codetools are good. click Cancel.
Right click on the Source editor, options, --> codetools are good. click Cancel.
Close Lazarus and the options will be good. So far so good.
Start Lazarus, choose menu, Tools, Options..., goto identifier completion and check Automatically invoke on typing. (So make a change in the options).
Apply, ok.
Make form1 a bit larger so that a change is triggered and then close the project without saving. <-- this seems important to trigger some kind of fault.
Start Lazarus again.
1: Now right click on the Source editor, options, --> codetools are empty!!!
2: Don't change anything, goto menu, Tools, Options... --> codetools are good!!! ???
If i choose apply at 1: when the code tools are empty when accessed from the source editor then the codetools are also empty when i open them from the menu. I must have done this earlier this week because I always switch between opening the options from the menu and from the source editor and if you are not in the code tools section you do not notice they are empty.
I hope this helps. If you need some logging the please explain how to make a log file.