Renaming file by link bug

Stanislav.SidristyStanislav.Sidristy USMember
edited May 2013 in Visual Studio

Hello Xamarin Team,

In my solution I have few projects with same code base. Actually, these projects are Android and iOS versions of same component. And both projects have links to same folder with shared code. When I trying to rename any file in this shared folder, I get following exception:

 System.NullReferenceException: Object reference not set to an instance of an object
  at MonoDevelop.VersionControl.VersionControlFileSystemExtension.MoveFile (FilePath source, FilePath dest) [0x00016] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.0.8-branch/0a09117d/source/monodevelop/main/src/addins/VersionControl/MonoDevelop.VersionControl/MonoDevelop.VersionControl/VersionControlFileSystemExtension.cs:56 
  at MonoDevelop.VersionControl.VersionControlFileSystemExtension.RenameFile (FilePath file, System.String newName) [0x00000] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.0.8-branch/0a09117d/source/monodevelop/main/src/addins/VersionControl/MonoDevelop.VersionControl/MonoDevelop.VersionControl/VersionControlFileSystemExtension.cs:71 
  at MonoDevelop.Core.FileService.InternalRenameFile (System.String srcFile, System.String newName) [0x00008] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.0.8-branch/0a09117d/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Core/FileService.cs:196 
  at MonoDevelop.Core.FileService.RenameFile (System.String oldName, System.String newName) [0x00032] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.0.8-branch/0a09117d/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Core/FileService.cs:136 
  at MonoDevelop.CSharp.Refactoring.CodeActions.MoveTypeToFile+<GetActions>c__Iterator13.<>m__66 (MonoDevelop.Ide.Gui.Document d, TextLocation l) [0x0002f] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.0.8-branch/0a09117d/source/monodevelop/main/src/addins/CSharpBinding/MonoDevelop.CSharp.Refactoring.CodeActions/Actions/MoveTypeToFile.cs:69 
  at MonoDevelop.CodeActions.DefaultCodeAction.Run (MonoDevelop.Ide.Gui.Document document, TextLocation loc) [0x00000] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.0.8-branch/0a09117d/source/monodevelop/main/src/addins/MonoDevelop.Refactoring/MonoDevelop.CodeActions/CodeAction.cs:81 
  at MonoDevelop.Refactoring.CurrentRefactoryOperationsHandler+<Update>c__AnonStorey13.<>m__19 () [0x00000] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.0.8-branch/0a09117d/source/monodevelop/main/src/addins/MonoDevelop.Refactoring/MonoDevelop.Refactoring/RefactoryCommands.cs:295 
  at MonoDevelop.Refactoring.CurrentRefactoryOperationsHandler.Run (System.Object data) [0x0000d] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.0.8-branch/0a09117d/source/monodevelop/main/src/addins/MonoDevelop.Refactoring/MonoDevelop.Refactoring/RefactoryCommands.cs:75 
  at MonoDevelop.Components.Commands.CommandHandler.InternalRun (System.Object dataItem) [0x00000] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.0.8-branch/0a09117d/source/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/builder/data/lanes/monodevelop-lion-monodevelop-4.0.8-branch/0a09117d/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Commands/CommandManager.cs:1108 
  at MonoDevelop.Components.Commands.CommandManager.DispatchCommand (System.Object commandId, System.Object dataItem, System.Object initialTarget, CommandSource source) [0x002de] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.0.8-branch/0a0`9117d/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Commands/CommandManager.cs:1075 `

Not stopper for me, because I will move all shared to independent assembly, but anyway, bug found.

Posts

  • mhutchmhutch USMember, Xamarin Team Xamurai

    I've filed this on our bug tracker (in future, please file bugs directly).

  • LluisSanchezLluisSanchez ESXamarin Team Xamurai

    Which version control system are you using? and which Xamarin Studio version?

  • I use Git client by SourceTree 1.6.1 and Xamarin Studio 4.0.8 (build 2).
    Thanks for tracking this forum node, have no time to track bugzilla.

    Also, if I will create file in linked folder, Xamarin will create local folder and will place file in created folder instead of just placing file in linked folder.

  • LluisSanchezLluisSanchez ESXamarin Team Xamurai

    The crash has been fixed, and the fix will be included in upcoming releases.
    About the linked folder issue, Xamarin Studio doesn't really support linked folders, only linked files, so what are you trying to do is not supported.

Sign In or Register to comment.