Bug 4477 - Refactor: Create Method on Static Class error.
Summary: Refactor: Create Method on Static Class error.
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: General ()
Hardware: Macintosh Mac OS
: High normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2012-04-17 13:09 UTC by Ian
Modified: 2012-04-24 10:56 UTC (History)
2 users (show)

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:

Description Ian 2012-04-17 13:09:17 UTC
Using the newest MT and MD for a Mac on the Release update channel.

I get this error when I use the refactor method to create a new static method on a static class. My class is defined as:

   public static class SetupDataManager

and the I am refactoring to create the method:

   SetupDataManager.DatabaseIsMissing ()

This error is:

System.ArgumentNullException: Argument cannot be null.
Parameter name: parsedDocument
  at MonoDevelop.Ide.CodeGenerationService.GetInsertionPoints (Mono.TextEditor.TextEditorData data, MonoDevelop.Projects.Dom.ParsedDocument parsedDocument, IType type) [0x00439] in /Users/builder/data/lanes/monodevelop-mac- 
  at MonoDevelop.Ide.CodeGenerationService.GetInsertionPoints (MonoDevelop.Ide.Gui.Document document, IType type) [0x00011] in /Users/builder/data/lanes/monodevelop-mac- 
  at MonoDevelop.CSharp.Refactoring.CreateMethod.CreateMethodCodeGenerator+<Run>c__AnonStorey1F.<>m__57 () [0x0008f] in /Users/builder/data/lanes/monodevelop-mac- 
  at Mono.TextEditor.Document.RunWhenLoaded (System.Action action) [0x0000b] in /Users/builder/data/lanes/monodevelop-mac- 
  at MonoDevelop.Ide.Gui.Document.RunWhenLoaded (System.Action action) [0x0001f] in /Users/builder/data/lanes/monodevelop-mac- 
  at MonoDevelop.CSharp.Refactoring.CreateMethod.CreateMethodCodeGenerator.Run (MonoDevelop.Refactoring.RefactoringOptions options) [0x0008f] in /Users/builder/data/lanes/monodevelop-mac- 
  at MonoDevelop.Refactoring.CurrentRefactoryOperationsHandler+RefactoringOperationWrapper.Operation () [0x00000] in /Users/builder/data/lanes/monodevelop-mac- 
  at MonoDevelop.Refactoring.CurrentRefactoryOperationsHandler.Run (System.Object data) [0x0000d] in /Users/builder/data/lanes/monodevelop-mac- 
  at MonoDevelop.Components.Commands.CommandHandler.InternalRun (System.Object dataItem) [0x00000] in /Users/builder/data/lanes/monodevelop-mac- 
  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/builder/data/lanes/monodevelop-mac- 
  at MonoDevelop.Components.Commands.CommandManager.DispatchCommand (System.Object commandId, System.Object dataItem, System.Object initialTarget, CommandSource source) [0x002d1] in /Users/builder/data/lanes/monodevelop-mac-
Comment 1 Mike Krüger 2012-04-24 10:56:06 UTC
Works in current master version.