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.
Product Version = NetBeans IDE Dev (Build 201607210002) Operating System = Linux version 4.4.0-31-generic running on amd64 Java; VM; Vendor = 1.8.0_102 Runtime = Java HotSpot(TM) 64-Bit Server VM 25.102-b14 Reproducibility: Happens every time Various navigation functions that position the Java editor at a particular line seem to be working differently than in 8.1. In 8.1 both double clicking a method name in the Navigator view or going to a bookmark in the file would position the target line near the middle of the editor window. In 8.2, the target lines seem to be near the top or the bottom of the window. The 8.1 behavior is much preferred.
Created attachment 161431 [details] IDE log
This is quite annoying. Still a problem in 201608150002.
I too have faced the behavior you have described. If you too have "Collapse by default" turned on for initial comment and import section this could be caused by https://netbeans.org/bugzilla/show_bug.cgi?id=259118 which is marked fixed but I think it's not.
This is the most annoying bug in 8.2 for me. I hope it gets some attention soon. It happens to me every time I double click a method in the Navigator view.
I am sorry, I cannot reproduce this on Netbeans 8.2, both bookmarks and navigator is showing a line in the middle of window. Maybe fixed in Bug #268088, Bug #267327, Bug #259023, or Bug #267326
I am on Product Version = NetBeans IDE 8.2 (Build 201609300101) so I think that all the mentioned fixes are included. This problem is very repeatable for me in this situation: 1. Right click on project in the Projects view, Find 2. Search for a string that appears in a java file that is not currently open 3. Double click on the line in the search results to navigate to that point in the source file. 4. The file is initially positioned correctly but then moves to an incorrect position. I think this happens about the same time that the Navigator view finishes its parsing and shows the method list.
I also get this frequently in this situation: - GUI form editor open - Right click on a form widget (e.g. jButton) -> Events -> Actions -> Action Performed - NB switches to the source view. The cursor is positioned at the correct method, but the screen frequently is not.
This is still a problem for me in Product Version = NetBeans IDE 8.2 (Build 201609300101) What can I provide to help narrow this down?
This bug is most likely caused by the fact that code folding is applied to the editor *after* navigation rather than *before*. Disabling code folding altogether I do not have wrong navigation.
Mila can you look at this. This could be caused by changes in caret.
Any ideas on this? This is one of my biggest problems with NB 8.2.
Generally this is an issue with autofolded sections, such as initial comment or autogenerated code. Will be tracked in issue #270172 *** This bug has been marked as a duplicate of bug 270172 ***