Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortherzok <marius.ungureanu@xamarin.com>2019-09-17 20:38:23 +0300
committertherzok <marius.ungureanu@xamarin.com>2019-09-17 21:56:13 +0300
commitf1ea6ad127687763cf4f16064a6d3b143c04316b (patch)
tree10196c228c0ee50af155b87aeedf5f2b2e93b35a /main/src/core/MonoDevelop.Ide
parent1abc0b5c2336147e0cbeca63a068fd006e71b00b (diff)
Add ToArray() on the call to close open documents
ERROR [2019-09-17 20:37:16Z]: Error while reloading project wagit System.InvalidOperationException: Collection was modified; enumeration operation may not execute. at System.Collections.Generic.HashSet`1+Enumerator[T].MoveNext () [0x00013] in /Users/builder/jenkins/workspace/build-package-osx-mono/2019-06/external/bockbuild/builds/mono-x64/external/corefx/src/System.Collections/src/System/Collections/Generic/HashSet.cs:1810 at MonoDevelop.Ide.TypeSystem.MonoDevelopWorkspace+<>c__DisplayClass121_0.<OnProjectModified>b__1 (System.Threading.Tasks.Task`1[TResult] t) [0x000ae] in /Users/therzok/Work/md/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.TypeSystem/MonoDevelopWorkspace.cs:1512 This is a regression introduced by https://github.com/mono/monodevelop/pull/8639
Diffstat (limited to 'main/src/core/MonoDevelop.Ide')
-rw-r--r--main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.TypeSystem/MonoDevelopWorkspace.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.TypeSystem/MonoDevelopWorkspace.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.TypeSystem/MonoDevelopWorkspace.cs
index 3bcc4feb4a..59a8f27ae3 100644
--- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.TypeSystem/MonoDevelopWorkspace.cs
+++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.TypeSystem/MonoDevelopWorkspace.cs
@@ -1509,7 +1509,7 @@ namespace MonoDevelop.Ide.TypeSystem
ProjectInfo newProjectContents = t.Result;
newProjectContents = AddVirtualDocuments (newProjectContents);
OnProjectReloaded (newProjectContents);
- foreach (var docId in GetOpenDocumentIds (newProjectContents.Id)) {
+ foreach (var docId in GetOpenDocumentIds (newProjectContents.Id).ToArray ()) {
if (CurrentSolution.GetDocument (docId) == null) {
ClearOpenDocument (docId);
}