Bug 1639 - System.InvalidOperationException when doing "git pull" in an external console
Summary: System.InvalidOperationException when doing "git pull" in an external console
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Version Control ()
Version: 2.8
Hardware: PC Linux
: Low normal
Target Milestone: ---
Assignee: Lluis Sanchez
URL:
Depends on:
Blocks:
 
Reported: 2011-10-21 14:48 UTC by Andres G. Aragoneses
Modified: 2012-11-21 10:08 UTC (History)
2 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 Andres G. Aragoneses 2011-10-21 14:48:35 UTC
I had MD open with a solution. I decided to update the repository that holds this solution, but I did it from an external console (git pull), and then MonoDevelop raised this exception:

System.InvalidOperationException: Operation is not valid due to the current state of the object
  at System.Linq.Enumerable.Single[VersionInfo] (IEnumerable`1 source, System.Func`2 predicate, Fallback fallback) [0x00038] in /usr/src/packages/BUILD/mono-2.10.2/mcs/class/System.Core/System.Linq/Enumerable.cs:2330 
  at System.Linq.Enumerable.Single[VersionInfo] (IEnumerable`1 source) [0x00006] in /usr/src/packages/BUILD/mono-2.10.2/mcs/class/System.Core/System.Linq/Enumerable.cs:2346 
  at MonoDevelop.VersionControl.Repository.GetVersionInfo (FilePath localPath, Boolean getRemoteStatus) [0x00000] in /usr/src/packages/BUILD/monodevelop-2.8/src/addins/VersionControl/MonoDevelop.VersionControl/MonoDevelop.VersionControl/Repository.cs:154 
  at MonoDevelop.VersionControl.Repository.GetVersionInfo (FilePath localPath) [0x00000] in /usr/src/packages/BUILD/monodevelop-2.8/src/addins/VersionControl/MonoDevelop.VersionControl/MonoDevelop.VersionControl/Repository.cs:148 
  at MonoDevelop.VersionControl.VersionControlService.OnEntryAdded (System.Object o, MonoDevelop.Projects.SolutionItemEventArgs args) [0x000a8] in /usr/src/packages/BUILD/monodevelop-2.8/src/addins/VersionControl/MonoDevelop.VersionControl/MonoDevelop.VersionControl/VersionControlService.cs:539 
  at (wrapper delegate-invoke) <Module>:invoke_void__this___object_SolutionItemChangeEventArgs (object,MonoDevelop.Projects.SolutionItemChangeEventArgs)
  at MonoDevelop.Ide.RootWorkspace+<NotifyItemAddedToSolution>c__AnonStoreyCD.<>m__1AB (System.Object , System.EventArgs ) [0x00010] in /usr/src/packages/BUILD/monodevelop-2.8/src/core/MonoDevelop.Ide/MonoDevelop.Ide/RootWorkspace.cs:1164 
  at Gtk.Application+InvokeCB.Invoke () [0x00000] in /usr/src/packages/BUILD/gtk-sharp-2.12.10/gtk/Application.cs:202 
  at GLib.Timeout+TimeoutProxy.Handler () [0x0000c] in /usr/src/packages/BUILD/gtk-sharp-2.12.10/glib/Timeout.cs:70
Comment 1 Alan McGovern 2012-11-21 09:26:08 UTC
This has been fixed in the newer 3.x releases.
Comment 2 Andres G. Aragoneses 2012-11-21 10:08:57 UTC
Awesome thanks Alan