Bug #17220 2010-06-09 08:35

eeghem

code completion freezes

Hi,

I recently stumbled upon a irritating code completion bug when developing with the Qt library.

I'm using QString's message formatting mechanism. To use it, you create a string template with %1... argument placeholders and then add the arguments with a call to the QString arg(..) method. Like this:

QString msg="counting: %1 %2 %3 %4";

msg.arg(1).arg(2).arg(3).arg(4); // the result is "counting: 1 2 3 4"

After the first '.arg(' code completion shows a nice list of all possible arg methods. This is near immediate. After the second '.arg(' it slows down. At the third '.arg(' it exceeds the 10sec so you'll end up questioning if it hangs. At the fourth '.arg(' the time exceeds 60sec.

I bypassed it by editing this specific line in another editor.

Regards,

Ruud

Category
Plugin::CodeCompletion
Group
 
Status
Closed
Close date
2010-10-25 13:59
Assigned to
loaden
ollydbg 2010-08-07 08:52

which version of CB did you use? Sorry I don't have QT installed in my system, so, I can't test it for you.

eeghem 2010-08-09 07:42

CB: version 10.05, rev. 6283.

ID_57639 2010-09-25 22:08

I have a similar problem but mine freezes everytime I:

Start C::B for the first time and tries to select anything the compilers autodetection list(pressing ok brings me the C::B main window)

Go into the manage plugin window and try to select Code Completion(to disable it =/).

Go into Editor Settings and select 'Code-Completion and symbols browser'.

Try to write SDL_ in the editor...

This problem started when I in version 10.05 of C::B tried to add SDL to my program and wrote SDL_(tried to write SDL_Surface) and it hung with an empty cc list open...

Tried every version from stable 8 to stable 10.05 to svn rev 6570 with ~/.codeblocks dir cleansed every time...

loaden 2010-10-15 12:34

Please try with a nightly build and reopen this bug report, if

needed.

See http://forums.codeblocks.org/index.php/board,20.0.html

eeghem 2010-10-25 13:01

Updated to the build 6752. Retested this bug. It now seems no longer to be there. each time I add ".arg(" to the source line, the code completion nearly immediately pops up with all the possible call types.

For me, the issue is solved.

loaden 2010-10-25 13:59

This bug is now fixed in HEAD.

Thank you for reporting it.