GraphicsMuncher
GraphicsMuncher

Reputation: 4641

Eclipse code collapsing bug

I've been using Eclipse Indigo just fine for years, but I've recently had a problem where lines of code will randomly disappear. On top of that, the collapse/expand buttons on the side are disappearing for the code that's still there.

Line numbers example:

50
51
78
79

Also, someone's donated this picture showing the problem as well, although with fewer lines

Screen Shot of bug

Methods just get swallowed up and they don't show the first line like they would if you had collapsed them. And now for some methods that don't disappear, they're missing the little +/- signs on the side to collapse/expand them. However, if you click where the sign would be, it still works.

These problems affect random methods with no pattern, as far as I can tell. Is this some special "feature" of Eclipse? How do I fix this?

Upvotes: 3

Views: 819

Answers (2)

Termenoil
Termenoil

Reputation: 31

This happens every few hours for me. I've searched for a solution but haven't found one. I'm not entirely sure what causes this but it seems to only occur with code folding turned on. Restarting Eclipse is the only way I've found to temporarily fix the bug.

Upvotes: 0

Bananeweizen
Bananeweizen

Reputation: 22070

If you can live without code folding to work around this issue, you might want to disable it in the preferences.

  • Java only: Preferences -> Java -> Editor -> Folding -> Enable Folding
  • All text editors: Preferences -> General -> Editors -> Structured Editors -> Enable Folding

Upvotes: 1

Related Questions