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 168738

Summary: Navigator jumps to the beginning of the file while parsing is running
Product: java Reporter: Jiri Prox <jiriprox>
Component: NavigationAssignee: Jan Jancura <jjancura>
Status: RESOLVED FIXED    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description Jiri Prox 2009-07-17 12:26:11 UTC
Product Version: NetBeans IDE 6.7.1 RC (Build 200907162301)
Java: 1.6.0_14; Java HotSpot(TM) Client VM 14.0-b16
System: Linux version 2.6.24-23-generic running on i386; UTF-8; en_US (nb)
Userdir: /home/jp159440/.netbeans/6.7

Navigator jumps to the beginning of the file while parsing is running.

Steps to reproduce:
1) open bigger project (tested with jEdit)
2) make change in the code (I've changed string literal)
3) immediately double click on item in navigator

-> editor jumps to the beginning of the file, not to the selected element.

This is more visible, when parsing the file takes long time
Comment 1 Jan Jancura 2009-09-08 14:46:16 UTC
reproducible.
i will look at it
Comment 2 Jan Jancura 2009-09-15 12:16:02 UTC
*** Issue 164252 has been marked as a duplicate of this issue. ***
Comment 3 Jan Jancura 2009-10-05 14:23:26 UTC
fixed in jet-main b90be0d4ad5e
Comment 4 Quality Engineering 2009-10-07 12:50:30 UTC
Integrated into 'main-golden', will be available in build *200910070250* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/b90be0d4ad5e
User: Jan Jancura <jjancura@netbeans.org>
Log: #168738: Navigator jumps to the beginning of the file while parsing is running
Comment 5 Quality Engineering 2009-10-14 11:07:37 UTC
Integrated into 'main-golden', will be available in build *200910140201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/7712dbf61d62
User: Jan Lahoda <jlahoda@netbeans.org>
Log: #168738, #174143: if indexing is running, ElementOpen.open should wait for a while before giving up and jumping to offset 0. Navigator should not call Description.getFileObject/SourceUtils.getFile synchronously for all nodes.