Bug 14816 - Going to definition jumps to correct file, but not line
Summary: Going to definition jumps to correct file, but not line
Status: RESOLVED NOT_REPRODUCIBLE
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: General ()
Version: 4.0.12
Hardware: PC Mac OS
: --- normal
Target Milestone: master
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2013-09-17 14:57 UTC by Johannes
Modified: 2016-04-05 11:20 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 NOT_REPRODUCIBLE

Description Johannes 2013-09-17 14:57:23 UTC
Description of Problem:

When jumping to a location in a file (e.g by going to definition, going through "find references", etc), Xamarin opens the correct file, but fails to go to the correct line. Instead, it the cursor is placed where it was last time the file was open.

If the file is already open in the editor, this does not happen.

This looks like a regression of bug #1990 ( https://bugzilla.xamarin.com/show_bug.cgi?id=1990 ).


Steps to reproduce the problem:
1. Open a project in Xamarin
2. Open a file
3. Place the cursor on a class name (which is defined in a different file)
4. Go to definition (e.g. by right-clicking and selecting "Go to definition")


Actual Results:
The file with the class definition opens, but the cursor is not on the right line.


Expected Results:
The cursor should be on the correct row and column.


How often does this happen? 

Most of the time, though I haven't figured out the exact premises for it to happen.


Additional Information:

I'm using a project file generated by Unity 3d, if that matters. The project is in C#.
Comment 1 Marius Ungureanu 2014-12-11 00:20:46 UTC
I cannot reproduce this. Is it still an issue?
Comment 2 Johannes 2014-12-11 02:53:37 UTC
I haven't used Xamarin in quite a while, so I can't say. Given the age of this issue I bet it's been resolved all ready—feel free to close it.
Comment 3 Marius Ungureanu 2016-04-05 11:20:59 UTC
Works for me.