Bug 17927 - "Go to Definition" missing from context menu on object members.
Summary: "Go to Definition" missing from context menu on object members.
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Text Editor ()
Version: 4.0.1
Hardware: PC Windows
: Normal normal
Target Milestone: master
Assignee: Mike Krüger
URL:
Depends on:
Blocks:
 
Reported: 2014-02-21 09:57 UTC by almo2001
Modified: 2015-05-18 03:55 UTC (History)
1 user (show)

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


Attachments
Screenshot (118.53 KB, image/jpeg)
2014-02-21 09:57 UTC, almo2001
Details
Test case for bug. (20.78 KB, application/x-zip-compressed)
2014-03-07 14:44 UTC, almo2001
Details


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 almo2001 2014-02-21 09:57:26 UTC
Created attachment 6111 [details]
Screenshot

I have this line of code in a .cs file:

_contextOwner.AsyncLoadings.Add(Application.LoadLevelAdditiveAsync(_sceneNames[i]));

If I select _contextOwner, I can right-click and do "Go to Definition" to jump to the code where it is defined.

If I select AsyncLoadings, the "Go to Definition" option is not in the right-click menu. If I hover the pointer on it, it shows a tooltip with its type, so it does recognize the definition.

I'm using MonoDevelop version 4.0.1, which is attached to the version of Unity we are using.

According to this:

http://answers.unity3d.com/questions/189091/mono-go-to-declaration-missing.html

The problem existed in MD 2.4.2 a few years ago. I would be surprised if it were not fixed in that time... maybe this is a Unity issue?
Comment 1 Mike Krüger 2014-02-21 09:58:53 UTC
Can you try to update to a more recent monodevelop ? 

I can't reproduce that with 4.2.4.
Comment 2 almo2001 2014-02-21 10:10:10 UTC
I can do that, provided I would still be able to use the existing version if it's needed by our version of Unity. Can two different versions of MD coexist in the same Windows installation?
Comment 3 Mike Krüger 2014-02-21 10:10:46 UTC
Yes they can.
Comment 4 almo2001 2014-02-21 10:28:24 UTC
Same thing on 4.2.3. Must have something to do with our project setup. It's a unity project, which seems to generate a Visual Studio .sln file, which gets opened by MD.

If I open the .sln in VS, it is able to go to the definition of AsyncLoadings, so I'm sure it's defined properly in the codebase.
Comment 5 Mikayla Hutchinson [MSFT] 2014-02-21 14:51:25 UTC
Are the navigation commands missing from members of all type, or just some types? If the latter case, is there something those types have in common e.g. they all come from the same assembly.

Would it be possible for you to create a test case we can use to reproduce this?
Comment 6 almo2001 2014-03-07 14:43:57 UTC
Ok, got a repro with a simple project in Xamarin 4.2.3. Attachment added, including screenshot.
Comment 7 almo2001 2014-03-07 14:44:21 UTC
Created attachment 6260 [details]
Test case for bug.
Comment 8 Mike Krüger 2015-05-18 03:55:21 UTC
Just tested the project with 6.0 (roslyn).
All goto definition commands show up & work.

->closing