Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Folding Bug?
Folding Bug? [message #161941] Tue, 17 January 2006 00:01 Go to next message
Eclipse UserFriend
Originally posted by: eclipse.dharty.com

I just noticed a major problem in folding on a file with almost 4000
lines (3647)

Some lines are folded, but no '+' icon exists to unfold them and hence
are totally hidden from the editor. (recreated below with some code
obfuscation).

2583-double TrueAirspeedToDynamicPressure()
2584 /*
2585 27 October 2002
2586 */
2587 {
2588 return TAS;
2589 } // TrueAirspeedToDynamicPressure
2637 /**
2638 Update altimeter setting, and dependent parameters.
2639
2640 *********************************************************/
3630
3631 Determines if the engine ignition has been enabled.
3632
3633 @return 1 if the ignition is enabled, 0 otherwise.
3634
3535 ********************************************************/
3536-unsigned char getIgnitionEnabled(void)
3537 {

notice how line 2583 has been unfolded "-", but then line 2589 jumps to
2637 with no folding indication. If I go to 2637 and try to
fold/unfold, nothing happens, but if I "go to" (ctrl+l) line 2590 the
lines will unfold and appear, sometimes. Sometimes the cursor will
appear at line 2638, without unfolding the lines inbetween.

The only way to fix it is to select a sequence of lines over the missing
gap, eg select lines 2640 and 3630, cut and then paste them back in. In
this circumstance the lines will re-appear, unfolded.

Has anyone else experienced this?
Re: Folding Bug? [message #164062 is a reply to message #161941] Fri, 17 February 2006 11:33 Go to previous message
Eclipse UserFriend
Originally posted by: arne.anka.ginguppin.de

> Has anyone else experienced this?

yes. with jdt a while ago (don't know whether it's fixed by now). seems
cdt 3.0.2 introduced some old bugs and a fragile parser already known in
other projects.

regards
Previous Topic:C/C++ indexer problem
Next Topic:Adding recognized keywords
Goto Forum:
  


Current Time: Fri Apr 19 17:07:59 GMT 2024

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

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

Back to the top