Author Topic: Code Completion bug  (Read 7588 times)

Offline ninio_arg

  • Multiple posting newcomer
  • *
  • Posts: 12
Code Completion bug
« on: February 09, 2014, 09:53:02 pm »
Code
cat /etc/slackware-version
Slackware 14.1
I have build Code::Blocks 13.12 from its sources.

This the well known code completion bug, which puts your cpu at 100% and hangs there.
I can disable the plugin, but I want to have that functionality.

What solution do you propose?.

Offline dmoore

  • Developer
  • Lives here!
  • *****
  • Posts: 1576
Re: Code Completion bug
« Reply #1 on: February 10, 2014, 02:14:27 am »
If you havent already, try building latest svn. Otherwise give us a minimal sample to reproduce your problem.

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 6035
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: Code Completion bug
« Reply #2 on: February 10, 2014, 02:15:17 am »
...
What solution do you propose?.
Can you try to build a C::B from SVN HEAD (see SVN repo at Developer documentation), I have at least fix one of the hang bug, please report back if it still exists.

Any way, can you supply a testing project/workspace and tell us the steps to reproduce the hang issue? thanks.
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline ninio_arg

  • Multiple posting newcomer
  • *
  • Posts: 12
Re: Code Completion bug
« Reply #3 on: February 25, 2014, 04:53:15 am »
Well, I have compiled the SVN 9661 version.
Code
svn co svn://svn.code.sf.net/p/codeblocks/code/trunk
Then compiled as is shown here, but installed after done the package for my distro.

Same symptoms. Just opening a "Hello world!" the completion plugins hangs.

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 6035
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: Code Completion bug
« Reply #4 on: February 25, 2014, 07:07:51 am »
Hi, thanks for the test.
Can you supply a sample test project? So I can try it on my computer.
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline ninio_arg

  • Multiple posting newcomer
  • *
  • Posts: 12
Re: Code Completion bug
« Reply #5 on: February 26, 2014, 01:11:05 am »
It happens with ANY project or cpp file. Even with a simple Hello World. Anyway the sample project is here.

Looking on this forum I saw another posts about this issue (C::B on Slackware) without a real solution  :-\
I'm starting to think it's a conflict with other libraries that this distro comes with.