1

I have noticed recently that when I type Ctrl+Space (Content Assist shortcut) in Eclipse (in order to autocomplete the code I write), the process hangs for a bit before, sometimes getting really slow, and sometimes giving this error:

enter image description here

Why that happens? Should I do something in order to fix this annoying issue?

tonix
  • 6,671
  • 13
  • 75
  • 136
  • Please see http://stackoverflow.com/questions/2117880/eclipse-is-very-slow-when-using-code-assist-org-eclipse-mylyn-java-ui-javaallco – trylimits Dec 04 '14 at 21:56
  • I am sorry, you are telling me to downgrade to Eclipse Ganymede like the user of the accepted answer tells? http://stackoverflow.com/questions/2117880/eclipse-is-very-slow-when-using-code-assist-org-eclipse-mylyn-java-ui-javaallco#answer-2132399 – tonix Dec 04 '14 at 22:07
  • Have you tried to increase the heap size? – trylimits Dec 04 '14 at 22:08
  • No I didn't how do I do that? – tonix Dec 05 '14 at 05:16
  • 1
    It's described here: http://stackoverflow.com/a/5130171/2128755 – trylimits Dec 05 '14 at 08:05
  • Sorry, where is the eclipse.ini located in a STS installation on a Mac? I tried to use find but it seems there are several eclipse.ini files: `./sts-bundle/sts-3.6.2.RELEASE/plugins/org.eclipse.equinox.frameworkadmin.test_1.1.0.v20131211-1531/dataFile/readerTest1/eclipse.ini` `./sts-bundle/sts-3.6.2.RELEASE/plugins/org.eclipse.pde.build.tests_1.1.500.v20140423-0753/resources/264743/build1/features/ee/bin/carbon/macosx/ppc/Eclipse.app/Contents/MacOS/eclipse.ini` – tonix Dec 05 '14 at 09:08
  • See https://wiki.eclipse.org/Eclipse.ini#Overview – trylimits Dec 05 '14 at 09:13
  • Thanks for the link, if I do not have the $ECLIPSE_HOME env var set and inside STS.app/Contents/MacOS I don't have any eclipse.ini, what can I do? Create one inside this dir? But what content should I put inside the file? – tonix Dec 05 '14 at 09:21
  • depends on your OS. I suggest to download an eclipse package and copy&paste the ini-file. – trylimits Dec 05 '14 at 09:36

1 Answers1

0

It may caused by corrupted jars in classpath.

If your project is maven project, try to find and remove partially downloaded jars.

Assumes that all your jars resident in ~/.m2/repository

find ~/.m2/repository -name "*-in-progress" | xargs dirname | xargs rm -rf

vivimice
  • 496
  • 8
  • 9