Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse code collapsing bug

Tags:

eclipse

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?

like image 498
GraphicsMuncher Avatar asked Jul 31 '26 06:07

GraphicsMuncher


1 Answers

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
like image 186
Bananeweizen Avatar answered Aug 01 '26 22:08

Bananeweizen



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!