While working on the new addressbook design for eGroupWare 2.0, Eclipse just stopped working with the very helpful error message:
An internal error occurred during: "Building PHP projects ...".
java.lang.OutOfMemoryError: Java heap space
Eclipse prompted me to shutdown itself or continue working at my own risk. I decided to shutdown Eclipse. After i restarted Eclipse again, i displayed the same error message. So far Eclipse has been working very well. As i also had the option to continue working with Eclipse i decided to got this way. After a short moment i realized that code completion and the outline stopped working.
That was the point i decided, that i can not ignore this problem anymore. Without the advanced features like code completion i could also switch back to joe.
I started searching at Google if someone else already encountered this problem. As i'm lucky beggar, i found the right websites very quickly.
Some posted the same problem already last month
here. And luckily he also found the right
solution. And there also exists a
bugreport, which indicates that the problem is fixed.
If you have a look at
comment #6, you will see exactly the piece of code which triggered my problem. I tried to copy a function to another place. Before i renamed the new function, i tried to use code completion. Which broke my Eclipse. After deleting the .cache directory in the project folder everything was back to normal.
To solve the problem just search for the directory .cache in your projects folders
find ~/workspace/ -name .cache
and delete the found .cache directory.