Bug 13932 - Add file or folder fails with exception [after upgrade to 4.0.12 cannot use]
Summary: Add file or folder fails with exception [after upgrade to 4.0.12 cannot use]
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Version Control ()
Version: 4.0.12
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: master
Assignee: Marius Ungureanu
URL:
Depends on:
Blocks:
 
Reported: 2013-08-12 15:46 UTC by Jonathan Shore
Modified: 2013-08-13 02:11 UTC (History)
1 user (show)

Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
Log from Xamarin Studio 4.0.12 (1.24 MB, application/octet-stream)
2013-08-12 15:46 UTC, Jonathan Shore
Details


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 Jonathan Shore 2013-08-12 15:46:10 UTC
Created attachment 4613 [details]
Log from Xamarin Studio 4.0.12

I cannot add files or folders in a project using SVN.  

$ svn --version
svn, version 1.7.9 (r1462340)

I do not mind Xamarin Studio ignoring subversion if it cannot handle SVN 1.7.9, but it is now standing in the way of adding new classes (files) or folders.

Is there some way to disable source control functions?

Here is the exception on attempting to add a folder:

ERROR [2013-08-12 15:38:51Z]: Error while executing command: New Folder
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> MonoDevelop.VersionControl.Subversion.SubversionException: '/Volumes/fufu/Dev/hf/src/Libraries/Core/src/math/ml/calibration/New Folder' is not a working copy
  at MonoDevelop.VersionControl.Subversion.Unix.SvnClient.CheckError (IntPtr error, Nullable`1 allowedError) [0x000aa] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.0.12-branch/593d7acb/source/monodevelop/main/src/addins/VersionControl/MonoDevelop.VersionControl.Subversion.Unix/MonoDevelop.VersionControl.Subversion.Unix/SvnClient.cs:50 
  at MonoDevelop.VersionControl.Subversion.Unix.SvnClient.CheckError (IntPtr error) [0x0000b] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.0.12-branch/593d7acb/source/monodevelop/main/src/addins/VersionControl/MonoDevelop.VersionControl.Subversion.Unix/MonoDevelop.VersionControl.Subversion.Unix/SvnClient.cs:26 
  at MonoDevelop.VersionControl.Subversion.Unix.UnixSvnBackend.CheckError (IntPtr error) [0x00001] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.0.12-branch/593d7acb/source/monodevelop/main/src/addins/VersionControl/MonoDevelop.VersionControl.Subversion.Unix/MonoDevelop.VersionControl.Subversion.Unix/SvnClient.cs:173 
  at MonoDevelop.VersionControl.Subversion.Unix.UnixSvnBackend.Status (MonoDevelop.VersionControl.Repository repo, FilePath path, MonoDevelop.VersionControl.Subversion.SvnRevision rev, Boolean descendDirs, Boolean changedItemsOnly, Boolean remoteStatus) [0x00077] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.0.12-branch/593d7acb/source/monodevelop/main/src/addins/VersionControl/MonoDevelop.VersionControl.Subversion.Unix/MonoDevelop.VersionControl.Subversion.Unix/SvnClient.cs:511 
  at MonoDevelop.VersionControl.Subversion.SubversionBackend.GetDirStatus (MonoDevelop.VersionControl.Repository repo, FilePath localPath, Boolean getRemoteStatus) [0x0002b] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.0.12-branch/593d7acb/source/monodevelop/main/src/addins/VersionControl/MonoDevelop.VersionControl.Subversion/MonoDevelop.VersionControl.Subversion/SubversionVersionControl.cs:147 
  at MonoDevelop.VersionControl.Subversion.SubversionBackend.GetVersionInfo (MonoDevelop.VersionControl.Repository repo, FilePath localPath, Boolean getRemoteStatus) [0x00015] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.0.12-branch/593d7acb/source/monodevelop/main/src/addins/VersionControl/MonoDevelop.VersionControl.Subversion/MonoDevelop.VersionControl.Subversion/SubversionVersionControl.cs:109 
  at MonoDevelop.VersionControl.Subversion.SubversionRepository+<OnGetVersionInfo>c__Iterator0.MoveNext () [0x00079] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.0.12-branch/593d7acb/source/monodevelop/main/src/addins/VersionControl/MonoDevelop.VersionControl.Subversion/MonoDevelop.VersionControl.Subversion/SubversionRepository.cs:96 
  at System.Collections.Generic.List`1[MonoDevelop.VersionControl.VersionInfo].AddEnumerable (IEnumerable`1 enumerable) [0x00013] in /private/tmp/source/bockbuild-xamarin/profiles/mono-mac-xamarin-no-pcl/build-root/mono-3.2.0/mcs/class/corlib/System.Collections.Generic/List.cs:134 
  at System.Collections.Generic.List`1[MonoDevelop.VersionControl.VersionInfo]..ctor (IEnumerable`1 collection) [0x0002f] in /private/tmp/source/bockbuild-xamarin/profiles/mono-mac-xamarin-no-pcl/build-root/mono-3.2.0/mcs/class/corlib/System.Collections.Generic/List.cs:69 
  at System.Linq.Enumerable.ToList[VersionInfo] (IEnumerable`1 source) [0x00006] in /private/tmp/source/bockbuild-xamarin/profiles/mono-mac-xamarin-no-pcl/build-root/mono-3.2.0/mcs/class/System.Core/System.Linq/Enumerable.cs:2951 
  at MonoDevelop.VersionControl.Repository.GetVersionInfo (IEnumerable`1 paths, VersionInfoQueryFlags queryFlags) [0x00015] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.0.12-branch/593d7acb/source/monodevelop/main/src/addins/VersionControl/MonoDevelop.VersionControl/MonoDevelop.VersionControl/Repository.cs:177 
  at MonoDevelop.VersionControl.VersionControlService.OnFileAdded (System.Object s, MonoDevelop.Projects.ProjectFileEventArgs e) [0x00096] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.0.12-branch/593d7acb/source/monodevelop/main/src/addins/VersionControl/MonoDevelop.VersionControl/MonoDevelop.VersionControl/VersionControlService.cs:426 
  at (wrapper delegate-invoke) <Module>:invoke_void__this___object_ProjectFileEventArgs (object,MonoDevelop.Projects.ProjectFileEventArgs)
  at (wrapper delegate-invoke) <Module>:invoke_void__this___object_ProjectFileEventArgs (object,MonoDevelop.Projects.ProjectFileEventArgs)
  at MonoDevelop.Ide.RootWorkspace.NotifyFileAddedToProject (System.Object sender, MonoDevelop.Projects.ProjectFileEventArgs e) [0x00015] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.0.12-branch/593d7acb/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide/RootWorkspace.cs:1179 
  at __ProjectFileEventHandler_DelegateFactory_3.Dispatch (System.Object ) [0x00000] in <filename unknown>:0 
  at MonoDevelop.Ide.Gui.GuiSyncContext.AsyncDispatch (MonoDevelop.Ide.StatefulMessageHandler cb, System.Object ob) [0x0000d] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.0.12-branch/593d7acb/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui/GuiSyncContext.cs:47 
  at __ProjectFileEventHandler_DelegateFactory_3.ProxyCall (System.Object , MonoDevelop.Projects.ProjectFileEventArgs ) [0x00000] in <filename unknown>:0 
  at MonoDevelop.Projects.Solution.OnFileAddedToProject (MonoDevelop.Projects.ProjectFileEventArgs args) [0x00014] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.0.12-branch/593d7acb/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/Solution.cs:721 
  at MonoDevelop.Projects.SolutionFolder.OnFileAddedToProject (MonoDevelop.Projects.ProjectFileEventArgs e) [0x0001e] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.0.12-branch/593d7acb/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/SolutionFolder.cs:873 
  at MonoDevelop.Projects.SolutionFolder.NotifyFileAddedToProject (System.Object sender, MonoDevelop.Projects.ProjectFileEventArgs e) [0x00003] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.0.12-branch/593d7acb/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/SolutionFolder.cs:740 
  at MonoDevelop.Projects.SolutionFolder.OnFileAddedToProject (MonoDevelop.Projects.ProjectFileEventArgs e) [0x00037] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.0.12-branch/593d7acb/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/SolutionFolder.cs:875 
  at MonoDevelop.Projects.SolutionFolder.NotifyFileAddedToProject (System.Object sender, MonoDevelop.Projects.ProjectFileEventArgs e) [0x00003] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.0.12-branch/593d7acb/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/SolutionFolder.cs:740 
  at (wrapper delegate-invoke) <Module>:invoke_void__this___object_ProjectFileEventArgs (object,MonoDevelop.Projects.ProjectFileEventArgs)
  at (wrapper delegate-invoke) <Module>:invoke_void__this___object_ProjectFileEventArgs (object,MonoDevelop.Projects.ProjectFileEventArgs)
  at MonoDevelop.Projects.Project.OnFileAddedToProject (MonoDevelop.Projects.ProjectFileEventArgs e) [0x0001c] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.0.12-branch/593d7acb/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/Project.cs:948 
  at MonoDevelop.Projects.Project.NotifyFileAddedToProject (IEnumerable`1 objs) [0x00088] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.0.12-branch/593d7acb/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/Project.cs:873 
  at MonoDevelop.Projects.Project.OnItemsAdded (IEnumerable`1 objs) [0x0000f] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.0.12-branch/593d7acb/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/Project.cs:809 
  at MonoDevelop.Projects.DotNetProject.OnItemsAdded (IEnumerable`1 objs) [0x00003] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.0.12-branch/593d7acb/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/DotNetProject.cs:1080 
  at MonoDevelop.Projects.ProjectItemCollection`1[MonoDevelop.Projects.ProjectItem].NotifyAdded (IEnumerable`1 items, Boolean comesFromParent) [0x000a8] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.0.12-branch/593d7acb/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ProjectItemCollection.cs:165 
  at MonoDevelop.Projects.ProjectItemCollection`1[MonoDevelop.Projects.ProjectItem].MonoDevelop.Projects.IItemListHandler.InternalAdd (IEnumerable`1 items, Boolean comesFromParent) [0x00041] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.0.12-branch/593d7acb/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ProjectItemCollection.cs:138 
  at MonoDevelop.Projects.ProjectItemCollection`1[MonoDevelop.Projects.ProjectFile].NotifyAdded (IEnumerable`1 items, Boolean comesFromParent) [0x00091] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.0.12-branch/593d7acb/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ProjectItemCollection.cs:163 
  at MonoDevelop.Projects.ProjectItemCollection`1[MonoDevelop.Projects.ProjectFile].OnItemAdded (MonoDevelop.Projects.ProjectFile item) [0x0001b] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.0.12-branch/593d7acb/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ProjectItemCollection.cs:123 
  at MonoDevelop.Projects.ProjectFileCollection.OnItemAdded (MonoDevelop.Projects.ProjectFile item) [0x0000a] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.0.12-branch/593d7acb/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ProjectFileCollection.cs:182 
  at MonoDevelop.Projects.ItemCollection`1[MonoDevelop.Projects.ProjectFile].InsertItem (Int32 index, MonoDevelop.Projects.ProjectFile item) [0x0000b] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.0.12-branch/593d7acb/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ItemCollection.cs:39 
  at System.Collections.ObjectModel.Collection`1[MonoDevelop.Projects.ProjectFile].Add (MonoDevelop.Projects.ProjectFile item) [0x0000c] in /private/tmp/source/bockbuild-xamarin/profiles/mono-mac-xamarin-no-pcl/build-root/mono-3.2.0/mcs/class/corlib/System.Collections.ObjectModel/Collection.cs:80 
  at MonoDevelop.Ide.Gui.Pads.ProjectPad.FolderCommandHandler.AddNewFolder () [0x000a7] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.0.12-branch/593d7acb/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Pads.ProjectPad/FolderNodeBuilder.cs:529 
  at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
  at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00054] in /private/tmp/source/bockbuild-xamarin/profiles/mono-mac-xamarin-no-pcl/build-root/mono-3.2.0/mcs/class/corlib/System.Reflection/MonoMethod.cs:230 
  --- End of inner exception stack trace ---
  at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00069] in /private/tmp/source/bockbuild-xamarin/profiles/mono-mac-xamarin-no-pcl/build-root/mono-3.2.0/mcs/class/corlib/System.Reflection/MonoMethod.cs:238 
  at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in /private/tmp/source/bockbuild-xamarin/profiles/mono-mac-xamarin-no-pcl/build-root/mono-3.2.0/mcs/class/corlib/System.Reflection/MethodBase.cs:114 
  at MonoDevelop.Components.Commands.DefaultCommandHandler.Run (System.Object target, MonoDevelop.Components.Commands.Command cmd) [0x00019] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.0.12-branch/593d7acb/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Commands/CommandManager.cs:2094 
  at MonoDevelop.Components.Commands.CustomCommandTargetAttribute.Run (System.Object target, MonoDevelop.Components.Commands.Command cmd) [0x00009] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.0.12-branch/593d7acb/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Commands/CustomCommandTargetAttribute.cs:101 
  at MonoDevelop.Ide.Gui.Components.NodeCommandHandler+TransactedNodeHandlerAttribute.Run (System.Object target, MonoDevelop.Components.Commands.Command cmd) [0x0002d] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.0.12-branch/593d7acb/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Components/NodeCommandHandler.cs:296 
  at MonoDevelop.Components.Commands.CustomCommandTargetAttribute.MonoDevelop.Components.Commands.ICommandTargetHandler.Run (System.Object target, MonoDevelop.Components.Commands.Command cmd) [0x00004] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.0.12-branch/593d7acb/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Commands/CustomCommandTargetAttribute.cs:58 
  at MonoDevelop.Components.Commands.CommandHandlerInfo.Run (System.Object cmdTarget, MonoDevelop.Components.Commands.Command cmd) [0x00021] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.0.12-branch/593d7acb/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Commands/CommandManager.cs:1963 
  at MonoDevelop.Components.Commands.CommandManager+<DispatchCommand>c__AnonStorey7A.<>m__C9 () [0x0005f] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.0.12-branch/593d7acb/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Commands/CommandManager.cs:1054 
  at MonoDevelop.Components.Commands.CommandManager.DispatchCommand (System.Object commandId, System.Object dataItem, System.Object initialTarget, CommandSource source) [0x002b0] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.0.12-branch/593d7acb/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Commands/CommandManager.cs:1071
Comment 1 Jonathan Shore 2013-08-12 15:48:03 UTC
I should note that I am not trying to use SVN from within Xamarin Studio. Just want to add / move / remove files outside of any source control.   The problem is in trying to do any file operation in a directory under svn source control.

For better or worse my company uses svn instead of git.
Comment 2 Marius Ungureanu 2013-08-13 02:11:07 UTC
This is a known issue and I'm waiting on the team to issue the hotfixes to release. It will take just some time.

Also duplicate of at least one forum post.