Bug 323203

Summary: Navigating in code doesn't always scroll to the right position
Product: [Applications] kdevelop Reporter: Rolf Eike Beer <kde>
Component: generalAssignee: kdevelop-bugs-null
Status: CONFIRMED ---    
Severity: normal CC: kfunk, renan.t.inacio
Priority: NOR Keywords: junior-jobs, regression
Version First Reported In: 4.5.1   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Rolf Eike Beer 2013-08-05 19:03:07 UTC
Navigating through the code (e.g. clicking "go to implementation" on a declaration tooltip or clicking an item in a gdb backtrace) does not always scroll to the right position. The cursor seems to be positioned at the right place, but the view is scrolled to a position that looks random to me. It seems as if this happens very easy if the target file has not been open before.

I'm running 4.5.1 on KDE SC 4.11rc2.

Reproducible: Sometimes
Comment 1 Rolf Eike Beer 2013-09-24 06:02:56 UTC
Also happens e.g. from gdb plugin: hitting a breakpoint may show up anywhere in the file of the breakpoint.
Comment 2 Renan InĂ¡cio 2013-10-05 16:05:28 UTC
Not sure if I should file a separate report. But there's another related(?) problem:

1. Select lines 1-20 from the TARGET file;
2. Go to another file and open the TARGET file by means of "go to implementation";
3. Suppose the "go to implementation" led you to line 300.

At this point, you will have the selection in lines 1-20, the cursor on line 300, and the scroll potentially on somewhere else. If you press del/backspace, the selection will be deleted (the cursor will be kept at line 300). If, instead of del/backspace, you press a character key, the selection will be deleted and the character will be inserted on the cursor.

This is dangerous, because you may delete content without noticing.

I'm also on Kdevelop 4.5.1.
Comment 3 Kevin Funk 2013-12-05 22:14:24 UTC
Confirmed. Just had this.

Call trace with multiple frames inside the same file, e.g.
...
foo.cpp:100
foo.cpp:200
foo.cpp:300
...

Clicking on each of the items in foo.cpp seems to move the cursor around, but doesn't scroll the view. This is a regression, no?