Bug 12431 - VCS error when renaming linked file
Summary: VCS error when renaming linked file
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Version Control ()
Version: Trunk
Hardware: PC Mac OS
: Normal normal
Target Milestone: master
Assignee: Lluis Sanchez
URL:
Depends on:
Blocks:
 
Reported: 2013-05-28 14:04 UTC by Mikayla Hutchinson [MSFT]
Modified: 2013-06-04 13:08 UTC (History)
3 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 Mikayla Hutchinson [MSFT] 2013-05-28 14:04:07 UTC
From http://forums.xamarin.com/discussion/4484/renaming-file-by-link-bug#latest

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 `
Comment 1 Alan McGovern 2013-05-28 14:08:19 UTC
We should revert the offending commits before the next release. They have introduced several regressions, this is just one of them.

Marking as blocker and CC'ing pj.
Comment 2 Lluis Sanchez 2013-05-30 04:07:38 UTC
Which are the offending commits?
Comment 3 Marius Ungureanu 2013-05-30 07:39:54 UTC
This is unrelated to my commits. I've spoken to Alan, and I can't manage to reproduce this issue.
Comment 4 Lluis Sanchez 2013-06-04 10:41:40 UTC
Not a blocker. I can't reproduce, it doesn't look like a regression.
Comment 5 Lluis Sanchez 2013-06-04 13:08:17 UTC
Fixed in master.