Bug 9685 - Unit Tests Don't Run after Upgrading to MonoDevelop 3.1.1
Summary: Unit Tests Don't Run after Upgrading to MonoDevelop 3.1.1
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: General ()
Version: 3.1.x
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: ---
Assignee: Jérémie Laval
URL:
Depends on:
Blocks:
 
Reported: 2013-01-21 02:08 UTC by Anonymous
Modified: 2015-08-25 04:46 UTC (History)
6 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 Anonymous 2013-01-21 02:08:18 UTC
After upgrading to MonoDevelop 3.1.0 via Xamarin Update today Unit Tests that where running before are no longer running. Nothing even gets started as the exception listed at the end of this is thrown right away.

Found someone posted the same issue on the MonoDevelop mailing list, the nabble link is below.

http://mono.1490590.n4.nabble.com/Error-when-running-Nunit-in-Monodevelop-td4658100.html

MonoDevelop Version Information
===============================
MonoDevelop 3.1.0
Installation UUID: 5051fd40-f4ac-49d3-b9cd-8d23ec98017d
Runtime:
	Mono 3.0.3 (master/39c48d5)
	GTK 2.24.11
	GTK# (2.12.0.0)
	Package version: 300030000
Apple Developer Tools:
	 Xcode 4.5.2 (1847)
	 Build 4G2008a
Xamarin.Mac: Not Installed
Monotouch: 6.0.8
Mono for Android: Not Installed

Build information:
	Release ID: 30100000
	Git revision: 7cf5e00739e7634521d26506b1758bc850f10bca
	Build date: 2012-12-12 04:26:32+0000
	Xamarin addins: 096b543909e9090dcd36b4bff460f2f95b75f67c
Operating System:
	Mac OS X 10.8.2
	Darwin GnomeBook.local 12.2.0 Darwin Kernel Version 12.2.0
	    Sat Aug 25 00:48:52 PDT 2012
	    root:xnu-2050.18.24~1/RELEASE_X86_64 x86_64


EXCEPTION BELOW
===============

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.MissingMethodException: Method not found: 'Monodoc.Node.get_Nodes'.
  at MonoDevelop.Ide.Gui.Pads.HelpTree..ctor () [0x0013c] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-3.1.0-release/7cf5e007/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Pads/MonodocTreePad.cs:67 
  at (wrapper managed-to-native) System.Reflection.MonoCMethod:InternalInvoke (System.Reflection.MonoCMethod,object,object[],System.Exception&)
  at System.Reflection.MonoCMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x000b9] in /private/tmp/source/bockbuild/profiles/mono-mac-release/build-root/mono-3.0.3/_build/mono-3.0.3.git/mcs/class/corlib/System.Reflection/MonoMethod.cs:522 
  --- End of inner exception stack trace ---
  at System.Reflection.MonoCMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x000cb] in /private/tmp/source/bockbuild/profiles/mono-mac-release/build-root/mono-3.0.3/_build/mono-3.0.3.git/mcs/class/corlib/System.Reflection/MonoMethod.cs:528 
  at System.Reflection.MonoCMethod.Invoke (BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in /private/tmp/source/bockbuild/profiles/mono-mac-release/build-root/mono-3.0.3/_build/mono-3.0.3.git/mcs/class/corlib/System.Reflection/MonoMethod.cs:540 
  at System.Reflection.ConstructorInfo.Invoke (System.Object[] parameters) [0x0000e] in /private/tmp/source/bockbuild/profiles/mono-mac-release/build-root/mono-3.0.3/_build/mono-3.0.3.git/mcs/class/corlib/System.Reflection/ConstructorInfo.cs:62 
  at System.Activator.CreateInstance (System.Type type, Boolean nonPublic) [0x000c7] in /private/tmp/source/bockbuild/profiles/mono-mac-release/build-root/mono-3.0.3/_build/mono-3.0.3.git/mcs/class/corlib/System/Activator.cs:333 
  at Mono.Addins.RuntimeAddin.CreateInstance (System.String typeName, Boolean throwIfNotFound) [0x00017] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-3.1.0-release/7cf5e007/source/monodevelop/main/external/mono-addins/Mono.Addins/Mono.Addins/RuntimeAddin.cs:431 
  at MonoDevelop.Ide.Codons.PadCodon.CreatePad () [0x0000f] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-3.1.0-release/7cf5e007/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Codons/PadCodon.cs:165 
  at MonoDevelop.Ide.Codons.PadCodon.InitializePadContent (IPadWindow window) [0x0000b] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-3.1.0-release/7cf5e007/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Codons/PadCodon.cs:91 
  at MonoDevelop.Ide.Gui.PadWindow.CreateContent () [0x0000b] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-3.1.0-release/7cf5e007/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui/IPadContainer.cs:276 
  at MonoDevelop.Ide.Gui.PadWindow.get_Content () [0x00000] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-3.1.0-release/7cf5e007/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui/IPadContainer.cs:161 
  at MonoDevelop.Ide.Gui.Pad.get_Content () [0x00000] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-3.1.0-release/7cf5e007/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui/Pad.cs:61 
  at MonoDevelop.Ide.Gui.Workbench.GetPad[TestPad] () [0x00019] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-3.1.0-release/7cf5e007/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui/Workbench.cs:245 
  at MonoDevelop.NUnit.TestPad.RunTest (ITreeNavigator nav, IExecutionHandler mode) [0x00049] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-3.1.0-release/7cf5e007/source/monodevelop/main/src/addins/NUnit/Gui/TestPad.cs:462 
  at MonoDevelop.NUnit.TestPad.RunSelectedTest (IExecutionHandler mode) [0x00000] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-3.1.0-release/7cf5e007/source/monodevelop/main/src/addins/NUnit/Gui/TestPad.cs:474 
  at MonoDevelop.NUnit.TestPad.OnRunTest (System.Object data) [0x0000d] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-3.1.0-release/7cf5e007/source/monodevelop/main/src/addins/NUnit/Gui/TestPad.cs:407 
  at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
  at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x0006a] in /private/tmp/source/bockbuild/profiles/mono-mac-release/build-root/mono-3.0.3/_build/mono-3.0.3.git/mcs/class/corlib/System.Reflection/MonoMethod.cs:223 
  --- End of inner exception stack trace ---
  at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x0007f] in /private/tmp/source/bockbuild/profiles/mono-mac-release/build-root/mono-3.0.3/_build/mono-3.0.3.git/mcs/class/corlib/System.Reflection/MonoMethod.cs:231 
  at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in /private/tmp/source/bockbuild/profiles/mono-mac-release/build-root/mono-3.0.3/_build/mono-3.0.3.git/mcs/class/corlib/System.Reflection/MethodBase.cs:103 
  at MonoDevelop.Components.Commands.CommandHandlerInfo.Run (System.Object cmdTarget, MonoDevelop.Components.Commands.Command cmd, System.Object dataItem) [0x0002a] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-3.1.0-release/7cf5e007/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Commands/CommandManager.cs:1918 
  at MonoDevelop.Components.Commands.CommandManager+<DispatchCommand>c__AnonStorey70.<>m__BA () [0x0003d] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-3.1.0-release/7cf5e007/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Commands/CommandManager.cs:1038 
  at MonoDevelop.Components.Commands.CommandManager.DispatchCommand (System.Object commandId, System.Object dataItem, System.Object initialTarget, CommandSource source) [0x0029e] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-3.1.0-release/7cf5e007/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Commands/CommandManager.cs:1062
Comment 1 Zhao Wang 2013-02-08 15:37:51 UTC
I just want to say I have got the same error. 

If this kind of comment is inappropriate, I will delete it. Please let me know. 

I am new to this forum. 

Thank you.
Comment 2 Mikayla Hutchinson [MSFT] 2013-02-08 17:13:23 UTC
Jérémie, any idea why we might get a MissingMethodException with monodoc.dll on Mono 3.0.3? Did the ABI break?
Comment 3 Jérémie Laval 2013-02-11 07:59:51 UTC
It's weird, will take a look.
Comment 4 Alexander Jochum 2013-02-20 10:07:57 UTC
Something new here? I've a similar problem with an Addin I've written.
As soon as I call try to get the project solution pad via the following line of code it crashs.

Pad temporaryPad = IdeApp.Workbench.GetPad<ProjectSolutionPad>();

It only crashs with the new Mono version 3.0.3 if I go back to Mono version 3.0.2 or older everything is fine.
Comment 5 Jérémie Laval 2013-02-20 10:18:03 UTC
This issue should be fixed in the upcoming 3.0.4 or alternatively via a master build (either compiled yourself or via [0])

[0]   https://wrench.mono-project.com/Wrench/
Comment 6 Lluis Sanchez 2015-08-25 04:46:53 UTC
Closing.