Bug 5937 - Command Run -> Exceptions... throws an error if no solution is open
Summary: Command Run -> Exceptions... throws an error if no solution is open
Status: VERIFIED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: C# Binding ()
Version: Trunk
Hardware: PC Linux
: Normal normal
Target Milestone: ---
Assignee: Mike Krüger
URL:
Depends on:
Blocks:
 
Reported: 2012-06-30 22:17 UTC by Andres G. Aragoneses
Modified: 2012-07-02 17:19 UTC (History)
1 user (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:
VERIFIED FIXED

Description Andres G. Aragoneses 2012-06-30 22:17:05 UTC
The error is:

System.ArgumentNullException: Argument cannot be null.
Parameter name: mainAssembly
  at ICSharpCode.NRefactory.TypeSystem.Implementation.SimpleCompilation..ctor (ISolutionSnapshot solutionSnapshot, IUnresolvedAssembly mainAssembly, IEnumerable`1 assemblyReferences) [0x0011b] in /home/knocte/Documents/code/monostuff/monodevelopMASTER/main/contrib/ICSharpCode.NRefactory/TypeSystem/Implementation/SimpleCompilation.cs:80 
  at ICSharpCode.NRefactory.TypeSystem.Implementation.SimpleCompilation..ctor (IUnresolvedAssembly mainAssembly, ICSharpCode.NRefactory.TypeSystem.IAssemblyReference[] assemblyReferences) [0x00000] in <filename unknown>:0 
  at MonoDevelop.Debugger.ExceptionsDialog.LoadExceptions () [0x000de] in /home/andres1204/Documents/code/monostuff/monodevelopMASTER/main/src/addins/MonoDevelop.Debugger/MonoDevelop.Debugger/ExceptionsDialog.cs:88 
  at MonoDevelop.Debugger.ExceptionsDialog..ctor () [0x00185] in /home/andres1204/Documents/code/monostuff/monodevelopMASTER/main/src/addins/MonoDevelop.Debugger/MonoDevelop.Debugger/ExceptionsDialog.cs:71 
  at MonoDevelop.Debugger.DebuggingService.ShowExceptionsFilters () [0x00000] in /home/andres1204/Documents/code/monostuff/monodevelopMASTER/main/src/addins/MonoDevelop.Debugger/MonoDevelop.Debugger/DebuggingService.cs:306 
  at MonoDevelop.Debugger.SelectExceptionsCommand.Run () [0x00000] in /home/andres1204/Documents/code/monostuff/monodevelopMASTER/main/src/addins/MonoDevelop.Debugger/MonoDevelop.Debugger/DebugCommands.cs:579 
  at MonoDevelop.Components.Commands.CommandHandler.Run (System.Object dataItem) [0x00000] in /home/andres1204/Documents/code/monostuff/monodevelopMASTER/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Commands/CommandHandler.cs:61 
  at MonoDevelop.Components.Commands.CommandHandler.InternalRun (System.Object dataItem) [0x00000] in /home/andres1204/Documents/code/monostuff/monodevelopMASTER/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) [0x00064] in /home/andres1204/Documents/code/monostuff/monodevelopMASTER/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Commands/CommandManager.cs:1096 
  at MonoDevelop.Components.Commands.CommandManager.DispatchCommand (System.Object commandId, System.Object dataItem, System.Object initialTarget, CommandSource source) [0x002d1] in /home/andres1204/Documents/code/monostuff/monodevelopMASTER/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Commands/CommandManager.cs:1067 


And a pull request is coming that fixes it.
Comment 1 Andres G. Aragoneses 2012-06-30 22:21:07 UTC
https://github.com/mono/monodevelop/pull/209
Comment 2 Mikayla Hutchinson [MSFT] 2012-07-01 10:58:15 UTC
This is a bug in the newresolver type system, the dialog does handle the case where a solution is not open, but the type service is failing when loading the basic types.
Comment 3 Mike Krüger 2012-07-01 11:09:25 UTC
Should work now.
Comment 4 Andres G. Aragoneses 2012-07-02 17:19:01 UTC
Thanks, it works.