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

Workaround for InvalidOperationException thrown from EmitSolutionUpdateResults.GetAllDiagnosticsAsync #75011

Merged
merged 2 commits into from
Sep 10, 2024

Conversation

tmat
Copy link
Member

@tmat tmat commented Sep 6, 2024

We were missing call to WithUpToDateSourceGeneratorDocuments in code paths that post-processed rude edits reported by EditAndContinueService. The service itself did call WithUpToDateSourceGeneratorDocuments on the solution snapshot it analyzed but the rude edits were post-processed on the snapshot that has not been updated with the latest source generator outputs. When the analysis found a rude edit in a document that has just been generated we did not find that document in the solution snapshot.

Following up with a better fix that removes the post-processing step, but for servicing this workaround is more appropriate: #75013

Fixes https://devdiv.visualstudio.com/DevDiv/_workitems/edit/2169491

@tmat tmat requested review from a team as code owners September 6, 2024 22:24
@dotnet-issue-labeler dotnet-issue-labeler bot added Area-Interactive untriaged Issues and PRs which have not yet been triaged by a lead labels Sep 6, 2024
@tmat
Copy link
Member Author

tmat commented Sep 6, 2024

@davidwengier PTAL
@phil-allen-msft for servicing

@arunchndr
Copy link
Member

@tmat merge when ready.

@tmat tmat merged commit 5649376 into dotnet:release/dev17.11 Sep 10, 2024
28 checks passed
@tmat tmat deleted the FixSGDocs branch September 10, 2024 16:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Interactive Interactive-Debugging Interactive-EnC untriaged Issues and PRs which have not yet been triaged by a lead
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants