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 258729 - goto declaration fails on collapesd code
Summary: goto declaration fails on collapesd code
Status: REOPENED
Alias: None
Product: editor
Classification: Unclassified
Component: Actions/Menu/Toolbar (show other bugs)
Version: 8.2
Hardware: PC Windows 7
: P1 normal (vote)
Assignee: Miloslav Metelka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-04-08 13:43 UTC by muellermi
Modified: 2017-05-17 09:43 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (103.63 KB, text/plain)
2016-04-08 13:44 UTC, muellermi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description muellermi 2016-04-08 13:43:55 UTC
Product Version = NetBeans IDE Dev (Build 201604080001)
Operating System = Windows 7 version 6.1 running on amd64
Java; VM; Vendor = 1.8.0_77
Runtime = Java HotSpot(TM) 64-Bit Server VM 25.77-b03

Reproducibility: Happens every time

STEPS:
- point to any element
- press ctrl+b (goto declaration)

Expected: NB always shows declaration

But if the declaration is surrounded by a editor-fold and is in collapsed state, NB does not expand the source (anymore, it did before). Thus the pointer is not placed onto the declaration.
This is a VERY annoying behaviour, thus I declared it P2
Comment 1 muellermi 2016-04-08 13:44:01 UTC
Created attachment 159167 [details]
IDE log
Comment 2 Miloslav Metelka 2016-06-14 08:37:52 UTC

*** This bug has been marked as a duplicate of bug 259144 ***
Comment 3 muellermi 2016-09-22 09:38:35 UTC
Reopend: either bug 259144 is not resolved or it is something different
bug 259144 deals with collpsed code fragments within one file
this issue is a bout code within two different files.

- file1 contains code with editor fold
- file1 is not opened within the editor
- file2 is opened within the editor and uses a method or anything else of file1
- point to such an element and press Ctrl-B
 

--> NetBeans opens file1 at the appropriate element and the collapses the editor fold sections. Now the editor shows something complete different than the expected source

- go back to file1
- point to such an element and press Ctrl-B

--> now everything is fine

to reproduce the problem, file2 needs to be closed before.
Comment 4 muellermi 2017-05-17 09:43:13 UTC
really annoying, if you commonly use the great code fold feature