Bug 1291 - Go to declaration and Navigate to... don't position correctly
Summary: Go to declaration and Navigate to... don't position correctly
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Text Editor ()
Version: Trunk
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Mike Krüger
URL:
: 1290 ()
Depends on:
Blocks:
 
Reported: 2011-10-05 23:34 UTC by Lopatkin Ilja
Modified: 2011-11-10 04:57 UTC (History)
2 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FIXED

Description Lopatkin Ilja 2011-10-05 23:34:23 UTC
When you try to navigate to some definition which is not located in any opened editors, MD just opens target editor on the line that was active before last closing.
If definition is located in opened editor everything works just fine. It doesn't matter whether editor tab is active or not.
Comment 1 Lopatkin Ilja 2011-11-08 00:17:49 UTC
OK, I've done some debugging and find out that this bug was introduced by this commit: https://github.com/mono/monodevelop/commit/6482f339ec8f19415a72cf3c55f8e28a3e00d076
The problem is that Control.Realized doesn't get called after editor opens and so no jumping happens.
I'm not good at GTK so can't guess what's going on here. I've tried using Shown event instead and calling Realize method manually but this didn't help.
Bug present both on Windows XP and 7, I'm using GTK# 2.12.10 available from MonoDevelop site.
Comment 2 Mike Krüger 2011-11-10 04:45:48 UTC
*** Bug 1290 has been marked as a duplicate of this bug. ***
Comment 3 Mike Krüger 2011-11-10 04:57:37 UTC
fixed.