Bug 323203 - Navigating in code doesn't always scroll to the right position
Summary: Navigating in code doesn't always scroll to the right position
Status: CONFIRMED
Alias: None
Product: kdevelop
Classification: Applications
Component: general (other bugs)
Version First Reported In: 4.5.1
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords: junior-jobs, regression
Depends on:
Blocks:
 
Reported: 2013-08-05 19:03 UTC by Rolf Eike Beer
Modified: 2017-01-16 18:22 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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?