aBothe/Mono-D — Issue #58: Rename command not working
Author: gavin-norman
Created: 2012-02-10 11:22:13+00:00
State: open

In the D editor, the context menu "Rename" (for a symbol) seems to consistently cause an error and has no effect.

Here's the content of the error message box:

System.NullReferenceException: Object reference not set to an instance of an object
at MonoDevelop.D.Refactoring.DReferenceFinder.ScanNodeReferencesInModule (IAbstractSyntaxTree scannedFileAST, IEnumerable`1 parseCache, IEnumerable`1 scannedFileImports, D_Parser.Dom.INode[] declarationsToCompareWith) [0x00000] in :0
at MonoDevelop.D.Refactoring.RenamingRefactoring.Run (MonoDevelop.D.DProject project, INode targetMember, System.String newName) [0x00000] in :0
at MonoDevelop.D.Refactoring.ContextMenuRefactoringCommandHandler.RenameSymbol () [0x00000] in :0
at MonoDevelop.D.Refactoring.ContextMenuRefactoringCommandHandler.Run (System.Object dataItem) [0x00000] in :0
at MonoDevelop.Components.Commands.CommandHandler.InternalRun (System.Object dataItem) [0x00000] in /build/buildd/monodevelop-2.8.2/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 /build/buildd/monodevelop-2.8.2/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Commands/CommandManager.cs:648
at MonoDevelop.Components.Commands.CommandManager.DispatchCommand (System.Object commandId, System.Object dataItem, System.Object initialTarget, CommandSource source) [0x002d1] in /build/buildd/monodevelop-2.8.2/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Commands/CommandManager.cs:619