Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Editor freezes 10 seconds, then displays content assist list
Editor freezes 10 seconds, then displays content assist list [message #211711] Tue, 11 March 2008 14:12 Go to next message
Eclipse UserFriend
Originally posted by: felipehummel.gmail.com

Hi, i've been facing a problem using Eclipse, every time I try to use the
content assist (using ctrl+space or just typing "." "::" or ">") the whole
application freezes for about 10 seconds.

My problem was described by somebody else here:
https://bugs.launchpad.net/ubuntu/+source/eclipse-cdt/+bug/1 96203

My app version are exact the same as the bug description

I'll transcript it here:

Binary package hint: eclipse-cdt

Steps taken:
1. Create new C++ project,
2. Create a new .cpp file and enter some code.
2. Enter object name then '.' or '->'.

Result:
Editor freezes for between 5 and 10 seconds, then displays content assist
list.

Expected:
No / negligible delay.

Notes:
* Delay does not occur using content assist with Java source.
* Have tested with no, fast and full indexers (as set in project
properties). No change observed.
* Tested and repeated on several high spec machines. No change observed.
* Tried increasing heap size available to eclipse. No change observed.

Version information:
Eclipse SDK
Version: 3.2.2
Build id: M20070212-1330 ('Ubuntu' version: 3.2.2-3ubuntu3)

Eclipse C/C++ Development Tools
Version: 3.1.2.200706181825
Build id: 200706181825

If anyone know how to solve it, please give some help!

Thanks
Re: Editor freezes 10 seconds, then displays content assist list [message #211740 is a reply to message #211711] Wed, 12 March 2008 06:33 Go to previous message
Eclipse UserFriend
Felipe Hummel wrote:
> Hi, i've been facing a problem using Eclipse, every time I try to use
> the content assist (using ctrl+space or just typing "." "::" or ">") the
> whole application freezes for about 10 seconds.
>
> My problem was described by somebody else here:
> https://bugs.launchpad.net/ubuntu/+source/eclipse-cdt/+bug/1 96203
>
> My app version are exact the same as the bug description
>
> I'll transcript it here:
>
> Binary package hint: eclipse-cdt
>
> Steps taken:
> 1. Create new C++ project,
> 2. Create a new .cpp file and enter some code.
> 2. Enter object name then '.' or '->'.
>
> Result:
> Editor freezes for between 5 and 10 seconds, then displays content
> assist list.
>
> Expected:
> No / negligible delay.
>
> Notes:
> * Delay does not occur using content assist with Java source.
> * Have tested with no, fast and full indexers (as set in project
> properties). No change observed.
> * Tested and repeated on several high spec machines. No change observed.
> * Tried increasing heap size available to eclipse. No change observed.
>
> Version information:
> Eclipse SDK
> Version: 3.2.2
> Build id: M20070212-1330 ('Ubuntu' version: 3.2.2-3ubuntu3)
>
> Eclipse C/C++ Development Tools
> Version: 3.1.2.200706181825
> Build id: 200706181825
>
> If anyone know how to solve it, please give some help!
>
> Thanks
>

Content assist with CDT 3.x is slow due to the fact that it always
performs a full parse (following all inclusions), regardless of the index.

This has changed with CDT 4.0, see also
https://bugs.eclipse.org/bugs/show_bug.cgi?id=169860

If you need to stick to CDT 3.1.2, the only suggestion to give is:
Disable the content assist auto activation so that you invoke content
assist only when you really want it.

HTH
--
Anton Leherbauer
Wind River CDT Team, Austria
Previous Topic:arm c register saves-calling conventions
Next Topic:How to install cdt-master-4.0.3.zip from command line?
Goto Forum:
  


Current Time: Fri Mar 14 06:20:39 EDT 2025

Powered by FUDForum. Page generated in 0.04748 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top