This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 237364 - "Go to declaration" folds the requested function if method code folding is enabled
Summary: "Go to declaration" folds the requested function if method code folding is en...
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Code folding (show other bugs)
Version: 7.4
Hardware: Macintosh Mac OS X
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-20 08:31 UTC by marcosgdf
Modified: 2014-03-10 19:35 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description marcosgdf 2013-10-20 08:31:55 UTC
If I have method code folding enabled and I want to go to the declaration of a function, after loading the file the functions are automatically folded, making me force to "unfold" because I really wanted to see that function.

For me it does make sense that the requested method should not be folded because I really wanted to see it. Other methods should fold as requested in the config.
Comment 1 Svata Dedic 2013-10-20 16:30:44 UTC
This should work already; when a caret is positioned, the fold tree unfolds up to the caret position. If there's a timing issue between initial folding and caret movement from GoTo symbol function, it's a defect.
Comment 2 Svata Dedic 2014-01-14 14:14:48 UTC
Finally I understand. Goto symbol will 'open' the symbol, position caret at the start of the symbol (method). But just the method's body is folded, so the caret is positioned outside the fold, and the automagic unfolding-at-caret does not work.

Fixed in jet-main#b3660055e1a0
Comment 3 Quality Engineering 2014-01-22 02:35:06 UTC
Integrated into 'main-silver', will be available in build *201401220001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/48fbf363e541
User: Svata Dedic <sdedic@netbeans.org>
Log: #237364: fold of navigated-to element expands (or is initially set to expanded) after open
Comment 4 marcosgdf 2014-03-10 19:35:05 UTC
Is it normal that Netbeans 8.0 RC1 still has the problema?