question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Exception when switching projects

See original GitHub issue

Running FD under VS in debug mode, I’m often (not always) getting exceptions when switching projects (dev project and tests project for it), or checking out another git branch.

Exception: System.InvalidOperationException: ‘Collection was modified; enumeration operation may not execute.’ Stack trace:

System.InvalidOperationException occurred
  HResult=0x80131509
  Message=Collection was modified; enumeration operation may not execute.
  Source=<Cannot evaluate the exception source>
  StackTrace:
   at System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)
   at System.Collections.Generic.List`1.Enumerator.MoveNextRare()
   at System.Collections.Generic.List`1.Enumerator.MoveNext()
   at HaXeContext.Context.ResolveImport(MemberModel item, MemberList imports) in C:\project\flashdevelop\External\Plugins\HaXeContext\Context.cs:line 834
   at HaXeContext.Context.ResolveImports(FileModel inFile) in C:\project\flashdevelop\External\Plugins\HaXeContext\Context.cs:line 767
   at HaXeContext.Context.ResolveType(String cname, FileModel inFile) in C:\project\flashdevelop\External\Plugins\HaXeContext\Context.cs:line 939
   at ASCompletion.Model.ClassModel.ResolveExtendedType(List`1 extensionList) in C:\project\flashdevelop\External\Plugins\ASCompletion\Model\ClassModel.cs:line 139
   at ASCompletion.Model.ClassModel.ResolveExtends() in C:\project\flashdevelop\External\Plugins\ASCompletion\Model\ClassModel.cs:line 105
   at ASCompletion.Helpers.ASTCache.UpdateClass(ClassModel cls, Dictionary`2 cache) in C:\project\flashdevelop\External\Plugins\ASCompletion\Helpers\ASTCache.cs:line 256
   at ASCompletion.Helpers.ASTCache.<UpdateOutdatedModels>b__10_0() in C:\project\flashdevelop\External\Plugins\ASCompletion\Helpers\ASTCache.cs:line 112
   at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs)
   at System.Runtime.Remoting.Messaging.StackBuilderSink.AsyncProcessMessage(IMessage msg, IMessageSink replySink)

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
Neverbirthcommented, Jan 9, 2018

I definitely know the problem, but it’s not a simple change if wanted to keep performance. There are many cases involved here. Everything could be locked everywhere, but I think that’s an unacceptable solution.

0reactions
gene-pavlovskycommented, Jul 10, 2018

@Neverbirth you can finish it, I have faith! We together!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Java Custom exception throw behaves differently between ...
In one Project the exception is thrown and the effect is similar to calling "return" whereby I am returned back to the point...
Read more >
Exception in Azure DevOps plugin when switching projects
Exception in Azure DevOps plugin when switching projects. Open any TFVC-enabled project; Open any other project in the same window. You'll get an...
Read more >
Should You Create an Exception Plan for Your Project?
Exception planning for agile projects usually focuses on engaging more experienced people to help get things back on track. Completing features ...
Read more >
Exceptions and Tasks
Exceptions and tasks ensure that the change management process is formally ... The Exception records associated with a Change Project are action items ......
Read more >
UnrealBuildTool Exception when attempting to switch ...
UnrealBuildTool Exception: ERROR: Not expecting project C:\Unreal Projects\Fluoride\Intermediate\ProjectFiles\ProjectStream.vcxproj to ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found