Bug 4232 - Exception after switching branches in terminal while project open, then canceling the MD overwrite dialog
Summary: Exception after switching branches in terminal while project open, then cance...
Status: RESOLVED NOT_REPRODUCIBLE
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Version Control ()
Version: 2.8 beta 3
Hardware: PC Mac OS
: Normal normal
Target Milestone: 3.0
Assignee: Alan McGovern
URL:
Depends on:
Blocks:
 
Reported: 2012-04-04 11:22 UTC by PJ
Modified: 2012-05-08 13:16 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 NOT_REPRODUCIBLE

Description PJ 2012-04-04 11:22:29 UTC
Steps to reproduce:
1) Open a solution that is part of a git repository in MD (one that has multiple branches available). Make sure that the solution changes between branches. Right now this works with, for example, GLCube from monodroid-samples.

2) In terminal, check out another branch of the repo.

3) In monodevelop, a dialog should pop up that warns the user of external changes to the file.

4) Hit cancel.

5) Error:

System.InvalidOperationException: Collection was modified; enumeration operation may not execute.
  at System.Collections.Generic.List`1+Enumerator[MonoDevelop.Components.Commands.ICommandBar].VerifyState () [0x00047] in /private/tmp/monobuild/build/BUILD/mono-2.10.9/mcs/class/corlib/System.Collections.Generic/List.cs:785 
  at System.Collections.Generic.List`1+Enumerator[MonoDevelop.Components.Commands.ICommandBar].MoveNext () [0x00000] in /private/tmp/monobuild/build/BUILD/mono-2.10.9/mcs/class/corlib/System.Collections.Generic/List.cs:789 
  at MonoDevelop.Components.Commands.CommandManager.UpdateToolbars () [0x00039] in /Users/builder/data/lanes/monodevelop-mac-2.8.8-series/2597e0c3/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Commands/CommandManager.cs:1691 
  at MonoDevelop.Components.Commands.CommandManager.UpdateStatus () [0x00016] in /Users/builder/data/lanes/monodevelop-mac-2.8.8-series/2597e0c3/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Commands/CommandManager.cs:1568 
  at GLib.Timeout+TimeoutProxy.Handler () [0x00000] in <filename unknown>:0
Comment 1 Duncan Mak 2012-05-03 14:35:08 UTC
If this is still happening in the post-2.8 branch, we should look into it, right?
Comment 2 PJ 2012-05-08 13:16:59 UTC
I dont even get the dialog any more - I just get the standard Keep Changes/ Reload from Disk file header for each changed file now. Looks like the dialog is bypassed and there is no overall acceptance/cancellation of the changes.