Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LSP crash: Collection was modified; enumeration operation may not execute. #2406

Open
MikeStall opened this issue May 16, 2024 · 0 comments
Open

Comments

@MikeStall
Copy link
Contributor

On .Net 4.6.2.

System.InvalidOperationException: Collection was modified; enumeration operation may not execute.
at System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)
at System.Collections.Generic.List1.Enumerator.MoveNextRare() at System.Linq.Enumerable.WhereListIterator1.MoveNext()
at System.Linq.Enumerable.d__931.MoveNext() at Microsoft.PowerFx.Intellisense.IntellisenseResult..ctor(IIntellisenseData data, List1 suggestions, IEnumerable`1 possibleOverloads)
at Microsoft.PowerFx.Intellisense.Intellisense.Finalize(IIntellisenseContext context, IntellisenseData intellisenseData, CultureInfo culture)

@MikeStall MikeStall changed the title LSP crash: LSP crash: Collection was modified; enumeration operation may not execute. May 16, 2024
MikeStall added a commit that referenced this issue May 16, 2024
MikeStall added a commit that referenced this issue May 16, 2024
See #2406. This doesn't fix issue, but makes types more strongly typed
to help reduce the window.

Avoid mutable fields.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant