User forums > Using Code::Blocks

Hiccups while typing (continuation)

<< < (2/8) > >>

Pecan:

--- Quote from: Elena on February 01, 2025, 12:39:36 pm ---... for a very short time those two gadgets flash or kind of, like they becoming disabled and then enabled again, so I suspected it could be relatedT

--- End quote ---
Thanks for the screenshot
.
Those are the Scope and function/variable choice boxes for the plugin Code Completion.

Go to MainMenu>plugins>ManagePlugins  and disable the plugin "Code completion", restart CB, and see if the hiccups disappear.

If that eliminates the hiccups re-enable "Code completion" and restart CB.

Now go to MainMenu>settings>Editor>CodeCompletion> and disable "update parser when typing" check box. See the attached screenshot. Tell us if that eliminate the hiccups.

Also check (at bottom of Code completion settings) "Delay for Auto-kick-in when typing". Raise to at least 300 millisecs or until the hiccups disappear.

Look, also, at the second screenshot (Editor settings) and make sure the kick in for Code completion is set at (say around) 3 letters.
 

Elena:
Hi Pecan,  thanks for your support !
Disabling Update Parser When Typing seems to have fixed the hiccups !
Re: the other two settings suggested were already 300 ms and 3

Elena:
Oh what's up, a bug ?
It seems that if I close C::B and I reopen it, the "Update parser when typing" setting gets enabled again ! Can you check ?
NB svn 13598

Pecan:

--- Quote from: Elena on February 02, 2025, 11:10:50 pm ---Oh what's up, a bug ?
It seems that if I close C::B and I reopen it, the "Update parser when typing" setting gets enabled again ! Can you check ?
NB svn 13598

--- End quote ---

Yes, it's a bug. When CB is closed with a project active, a new setting of "Update parser..." will toggle itself.

When CB is closed with no project active, then "Update parser..." is changed,the "Update parser..." will hold.

So..., when I close all projects, change the "Update parser..." then close CB, the status of the check box will hold.

Weird !

Edit: 12:48 pm
When closing with no project open the CC parser is not involved.
When closing with a project open, the parser at 928 writes the value it was constructed with, not the updated value from the settings dialog.

cfg->Write(_T("/while_typing"), m_Options.whileTyping); //(ph 2025/02/03) wrong value when calledfrom ClassBrowser 245

Called from ClassBrowser 245: m_Parser->WriteOptions();
m_Options.whileTyping has the value before it was changed in settings dialog.

What I don't understand is why ClassBrowser has a stale value of the "Update parser..." value. In .conf it's named <WHILE_TYPING bool="0" />




ollydbg:
If I remember correctly, it is a known bug for a long time. But I nearly forgot the details.

I just remember that: Each Parser instance(for each cbp projects) has there own CodeCompletion options, and when you saved the CodeCompletion options, it is only for the active Parser instance. But if you don't have any cbp file opened, there is still a special hidden Parser instance created for "dummy cbp projects".

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version