Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
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
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.
Go to definition on Init() in main/src/addins/MacPlatform/MacInterop/Cocoa.cs:
System.NullReferenceException: Object reference not set to an instance of an object
at MonoDevelop.AssemblyBrowser.AssemblyBrowserWidget.IsMatch (ITreeNavigator nav, System.String helpUrl, Boolean searchType) [0x00000] in /Users/michael/Mono/monodevelop/main/src/addins/MonoDevelop.AssemblyBrowser/MonoDevelop.AssemblyBrowser/AssemblyBrowserWidget.cs:547
at MonoDevelop.AssemblyBrowser.AssemblyBrowserWidget.SearchMember (ITreeNavigator nav, System.String helpUrl) [0x0000c] in /Users/michael/Mono/monodevelop/main/src/addins/MonoDevelop.AssemblyBrowser/MonoDevelop.AssemblyBrowser/AssemblyBrowserWidget.cs:593
at MonoDevelop.AssemblyBrowser.AssemblyBrowserWidget.SearchMember (System.String helpUrl) [0x00000] in /Users/michael/Mono/monodevelop/main/src/addins/MonoDevelop.AssemblyBrowser/MonoDevelop.AssemblyBrowser/AssemblyBrowserWidget.cs:395
at MonoDevelop.AssemblyBrowser.AssemblyBrowserWidget.Open (System.String url, MonoDevelop.AssemblyBrowser.AssemblyLoader currentAssembly) [0x00000] in /Users/michael/Mono/monodevelop/main/src/addins/MonoDevelop.AssemblyBrowser/MonoDevelop.AssemblyBrowser/AssemblyBrowserWidget.cs:1201
at MonoDevelop.AssemblyBrowser.AssemblyBrowserViewContent.Open (System.String url) [0x00000] in /Users/michael/Mono/monodevelop/main/src/addins/MonoDevelop.AssemblyBrowser/MonoDevelop.AssemblyBrowser/AssemblyBrowserViewContent.cs:100
at MonoDevelop.Ide.ProjectOperations+<JumpToDeclaration>c__AnonStoreyAD.<>m__15A () [0x00017] in /Users/michael/Mono/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide/ProjectOperations.cs:295
at MonoDevelop.Ide.Gui.Document.RunWhenLoaded (System.Action action) [0x00018] in /Users/michael/Mono/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui/Document.cs:681
at MonoDevelop.Ide.ProjectOperations.JumpToDeclaration (INamedElement element) [0x00116] in /Users/michael/Mono/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide/ProjectOperations.cs:292
at MonoDevelop.Ide.ProjectOperations.JumpToDeclaration (INamedElement visitable, Boolean askIfMultipleLocations) [0x0009f] in /Users/michael/Mono/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide/ProjectOperations.cs:264
at MonoDevelop.Refactoring.CurrentRefactoryOperationsHandler+JumpTo.Run () [0x0008e] in /Users/michael/Mono/monodevelop/main/src/addins/MonoDevelop.Refactoring/MonoDevelop.Refactoring/RefactoryCommands.cs:130
at MonoDevelop.Refactoring.CurrentRefactoryOperationsHandler.Run (System.Object data) [0x0000d] in /Users/michael/Mono/monodevelop/main/src/addins/MonoDevelop.Refactoring/MonoDevelop.Refactoring/RefactoryCommands.cs:81
at MonoDevelop.Components.Commands.CommandHandler.InternalRun (System.Object dataItem) [0x00000] in /Users/michael/Mono/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Commands/CommandHandler.cs:42
at MonoDevelop.Components.Commands.CommandManager.DefaultDispatchCommand (MonoDevelop.Components.Commands.ActionCommand cmd, MonoDevelop.Components.Commands.CommandInfo info, System.Object dataItem, System.Object target, CommandSource source) [0x00076] in /Users/michael/Mono/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Commands/CommandManager.cs:1097
at MonoDevelop.Components.Commands.CommandManager.DispatchCommand (System.Object commandId, System.Object dataItem, System.Object initialTarget, CommandSource source) [0x002d1] in /Users/michael/Mono/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Commands/CommandManager.cs:1067
just one of many bugs that are already fixed
This was with master...
Sure ? it's working for me - can you test again ?
the exception should be fixed - still don't know why that happened
I can still repro the actual problem. There's no exception, but the assembly browser doesn't navigate to the method.
If I open the assembly browser first, THEN it works. So it looks like some kind of race. It's probably trying to navigate while the tree is still loading.
Why is this low priority?
This makes "go to definition" on libraries broken unless the assembly browser is already open.
Because it's not crashing nor data loss.
And just a minor annoyance.
I would consider it to be the bug that currently annoys me the most :)
The problem I have with this bug is this:
It works on my machine
Can you try to remove the derived data folder:
It may be that you've a really old definition file missing the assembly location. I thought I bumped the version after the change. But maybe that helps.
(btw. in the 'Xamarin Studio-4.0' folder as well)
That's not the problem. It opens the correct assembly, it simply does not navigate to the member IF the assembly is large and takes a while to load. If the assembly browser is already open with the assembly open, then navigation works. So it's pretty clearly a race. You're probably not seeing it because you have an SSD.
Marking dup of the newer bug since it's more descriptive and succinct.
*** This bug has been marked as a duplicate of bug 11811 ***