Author Topic: Code autocompletion hangs Code::Blocks  (Read 194 times)

Offline Totoxa

  • Multiple posting newcomer
  • *
  • Posts: 18
Code autocompletion hangs Code::Blocks
« on: November 12, 2017, 01:03:15 am »
Hi,

I found that Code::Blocks hangs when using autocompletion and the declaration being autocompleted is too long for the space available.
By resizing the editor window and triggering autocompletion I was able to reproduce this problem.

See the attached screenshot and project.

PD: I'm running Debian testing with official packages (Release 16.01 rev 10692, SDK version 1.29.0, wx3.0.3)
« Last Edit: November 12, 2017, 01:07:52 am by Totoxa »

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 10357
Re: Code autocompletion hangs Code::Blocks
« Reply #1 on: November 15, 2017, 08:24:39 pm »
What happens if you try some of the latest night builds or even 17.xx-rc1?
<debugger plugin maintainer>
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline Totoxa

  • Multiple posting newcomer
  • *
  • Posts: 18
Re: Code autocompletion hangs Code::Blocks
« Reply #2 on: November 16, 2017, 08:39:31 am »
Tried the latest nighty build and the RC from jens repository, they both show the problem.

Note that to reproduce the problem you have to enable "Documentation popup" in the General settings, I have disabled that and the problem is gone (anyway I didn't use that feature).

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 10357
Re: Code autocompletion hangs Code::Blocks
« Reply #3 on: November 16, 2017, 11:09:08 am »
Ok, I'll see if it reproduces on my end.
Can you try to provide an example which is self sufficient?
No includes, just simple code which is enough to reproduce the problem.

I'm asking this because sometimes the code in the toolchain/OS is different and on different system the problem doesn't manifest.

The simplest would probably be if you generate the preprocessed source (gcc -E ....) and use it.

<debugger plugin maintainer>
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline Totoxa

  • Multiple posting newcomer
  • *
  • Posts: 18
Re: Code autocompletion hangs Code::Blocks
« Reply #4 on: November 16, 2017, 11:43:13 am »
I've attached a project with no includes.

There are two function declarations, one uses stdint types as arguments and the other uses unsigned int, only the first triggers the problem.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 10357
Re: Code autocompletion hangs Code::Blocks
« Reply #5 on: Yesterday at 07:32:34 am »
I cannot reproduce it here.
Can you try to reproduce the problem using just base types?
The uintXXX_t types are typedefs defined in some header the compiler knows about.
For example use
Code: [Select]
typedef int myint32;

Also can you post a backtrace of the hang using gdb?
<debugger plugin maintainer>
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]