Bug 8726 - Monodevelop, Exception, Add git submodule project
Summary: Monodevelop, Exception, Add git submodule project
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Version Control ()
Version: 3.0.x
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: ---
Assignee: Alan McGovern
URL:
Depends on:
Blocks:
 
Reported: 2012-12-03 10:44 UTC by David Hoffmann
Modified: 2012-12-03 12:54 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 David Hoffmann 2012-12-03 10:44:28 UTC
you can reproduce the problem with my screencast.

screencast: http://screencast.com/t/UnsTVhhTl0



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 /private/tmp/monobuild/build/BUILD/mono-2.10.9/mcs/class/System.Core/System.Linq/Enumerable.cs:2330 

  at System.Linq.Enumerable.Single[VersionInfo] (IEnumerable`1 source) [0x00006] in /private/tmp/monobuild/build/BUILD/mono-2.10.9/mcs/class/System.Core/System.Linq/Enumerable.cs:2346 

  at MonoDevelop.VersionControl.Repository.GetVersionInfo (FilePath localPath, Boolean getRemoteStatus) [0x0008f] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-3.0-series/e159cf08/source/monodevelop/main/src/addins/VersionControl/MonoDevelop.VersionControl/MonoDevelop.VersionControl/Repository.cs:160 

  at MonoDevelop.VersionControl.Repository.GetVersionInfo (FilePath localPath) [0x00000] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-3.0-series/e159cf08/source/monodevelop/main/src/addins/VersionControl/MonoDevelop.VersionControl/MonoDevelop.VersionControl/Repository.cs:148 

  at MonoDevelop.VersionControl.VersionControlService.OnEntryAdded (System.Object o, MonoDevelop.Projects.SolutionItemEventArgs args) [0x000a8] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-3.0-series/e159cf08/source/monodevelop/main/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 (wrapper delegate-invoke) <Module>:invoke_void__this___object_SolutionItemChangeEventArgs (object,MonoDevelop.Projects.SolutionItemChangeEventArgs)

  at (wrapper delegate-invoke) <Module>:invoke_void__this___object_SolutionItemChangeEventArgs (object,MonoDevelop.Projects.SolutionItemChangeEventArgs)

  at MonoDevelop.Ide.RootWorkspace+<NotifyItemAddedToSolution>c__AnonStorey91.<>m__110 (System.Object , System.EventArgs ) [0x00010] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-3.0-series/e159cf08/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide/RootWorkspace.cs:1165 

  at Gtk.Application+InvokeCB.Invoke () [0x00000] in <filename unknown>:0 

  at GLib.Timeout+TimeoutProxy.Handler () [0x00000] in <filename unknown>:0 






MonoDevelop 3.0.5

Installation UUID: 3edb3c8b-1034-4172-8801-66a34af0f1c2

Runtime:

	Mono 2.10.9 (tarball)

	GTK 2.24.10

	GTK# (2.12.0.0)

	Package version: 210090011

Apple Developer Tools:

	 Xcode 4.5.2 (1847)

	 Build 4G2008a

Monotouch: 6.0.6

Mono for Android: 4.2.7

Android SDK: /Users/hoffmann/Library/Developer/Xamarin/android-sdk-mac_x86

	Supported Android versions:

		1.6   (API level 4)

		2.1   (API level 7)

		2.2   (API level 8)

		2.3   (API level 10)

		3.1   (API level 12)

		3.2   (API level 13)

		4.0   (API level 14)

		4.0.3 (API level 15)

		4.1   (API level 16)

Java SDK: /usr

Build information:

	Release ID: 30005000

	Git revision: e159cf083bd327933166819d94245298898d6e3d

	Build date: 2012-10-24 16:43:06+0000

	Xamarin addins: eea2ed91ae8dd242b281d5ec8f6c2fbc63b4cd3d

Operating System:

	Mac OS X 10.7.5

	Darwin SAMSTAG-IMAC 11.4.2 Darwin Kernel Version 11.4.2

	    Thu Aug 23 16:25:48 PDT 2012

	    root:xnu-1699.32.7~1/RELEASE_X86_64 x86_64
Comment 1 Alan McGovern 2012-12-03 11:04:36 UTC
Weirdly enough, a few patches were committed several months ago to fix all known causes of this issue but they have not yet made it to a MonoDevelop release. They should be part of the 3.1.x series once they are released. For now the only solution I can offer is either to not use submodules in your project or to disable git support inside MonoDevelop using the Add-in Manager.