Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 67113

Summary: [mavigation] Outline view pane update issue
Product: [Eclipse Project] JDT Reporter: Victor Costan <costan>
Component: TextAssignee: JDT-Text-Inbox <jdt-text-inbox>
Status: RESOLVED DUPLICATE QA Contact:
Severity: major    
Priority: P2 CC: dirk_baeumer
Version: 3.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
The Browser.java to use when trying to reproduce the bug. none

Description Victor Costan CLA 2004-06-14 16:00:30 EDT
The only reason I'm tagging this as "major" is because it's very annoying and 
confusing.

Versioning details: I'm using RC2, on a Windows XP SP1a, 2.8Ghz hyper-threaded 
CPU, extra options to eclipse.exe are "-data (something) -vmargs -Xmx384m". I 
have 512Mb RAM, so the whole thing fits nicely into RAM. I don't really need 
384Mb (it's not that big), but it does tend to run slower when I use the 
default settings (64Mb, I think).

I have a medium to large project. Everything is done on that project. See bug 
65626 for the project codebase.

Symptoms:
- I'm deleting some functions from Browser.java. Then, when I click on most 
functions in the outline view, I get to the wrong function. I saved the file 
and tried again, and the problem persists. If I try navigating to the same 
function using the ctrl+click => hyperlink feature, then it works. So I think 
the problem is in UI updating events, not in parsing.
Comment 1 Dirk Baeumer CLA 2004-06-14 17:40:43 EDT
This could be related to bug 66439, which describes an update problem in JFace 
(the outliner is based on JFace tree viewer).

Victor, when this happens and you select a method for which you get to the 
wrong source position, which method is presented in the status line. The one 
from the outliner or the one from the source you jumped to.

One last question: how do you delete the methods. In source or from the 
outliner using the delete action from the context menu.
Comment 2 Dirk Baeumer CLA 2004-06-14 17:47:43 EDT
Tried to reproduce this using the source attached to PR bug 66439 but wasn't 
able to do so. Victor, any special steps.
Comment 3 Victor Costan CLA 2004-06-14 19:39:52 EDT
I erased chunks of source code from the editor. Nothing special... I also got 
that effect while working with other files.

Also, please note that my source code is not in bug 66439. It is in bug 65626 
(actually, there's a hyperlink to a zipped project there... the person 
handling that case might have copied the project - in any case, it's still 
working).

The link is: http://web.mit.edu/costan/www/bug65626/lapis.zip
Comment 4 Dirk Baeumer CLA 2004-06-15 04:13:07 EDT
I used the code from bug 65626.
Comment 5 Dani Megert CLA 2004-06-15 04:22:55 EDT
Anything in .log?

Can you provide the Outline view's settings, e.g. which filters enabled in the
toolbar, what's checked the view menu and the Filters... dialog.
Comment 6 Victor Costan CLA 2004-06-15 10:20:32 EDT
The last entry in .log is fron June, 3, so I don't think it's relevat. I'm 
having the functions alphabetically sorted. I tried working with them in 
default (file) order, and they're still getting messed up.

You wanted more specific steps, so here it is: open up the Browser.java I'm 
attaching, and delete the "invoke" function. Trying to access the "remove...
()" functions (or, I think, anything below invoke) from the overview pane will 
result in a bad jump. Note: I have overview turned on all the time, I'm using 
the java perspective.

Also, I have found that just clicking the "sort by name" view action, then 
clicking it again (enabling / disabling the specific order), the overview pane 
loses its way around my sourcecode, too.
Comment 7 Victor Costan CLA 2004-06-15 10:22:04 EDT
Created attachment 12141 [details]
The Browser.java to use when trying to reproduce the bug.
Comment 8 Dani Megert CLA 2004-06-15 11:02:08 EDT
Victor, can you do the follwing:
1) try if you can reproduce when sorting is disabled
2) answer Dirk's first question from comment 1
Comment 9 Dani Megert CLA 2004-06-16 04:54:14 EDT
waiting for user input
Comment 10 Victor Costan CLA 2004-06-16 10:19:17 EDT
Sorry for the delay. It happened because I tried to get the bug when the 
methods list was not sorted. It seems that it's only happening when sorting 
occurs... I'm a bit confused, because I recall it also happened if I disabled 
sorting (probably, the view remained sorted, and I didn't notice that).

The status bar shows the correct method name. So it could be a bug in 
maintaining the sorted order.
Comment 11 Dani Megert CLA 2004-06-16 14:12:30 EDT
Marking as duplicate: since the status line is correct it's the refresh bug.

*** This bug has been marked as a duplicate of 66439 ***