-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Crash in compilation tracker source generator handling. #57082
Labels
Area-IDE
Bug
Tenet-Reliability
Customer telemetry indicates that the product is failing in a crash/hang/dataloss manner.
Comments
dotnet-issue-labeler
bot
added
Area-IDE
untriaged
Issues and PRs which have not yet been triaged by a lead
labels
Oct 11, 2021
jinujoseph
added
Bug
Tenet-Reliability
Customer telemetry indicates that the product is failing in a crash/hang/dataloss manner.
and removed
untriaged
Issues and PRs which have not yet been triaged by a lead
labels
Oct 13, 2021
4 tasks
jasonmalinowski
added a commit
to jasonmalinowski/roslyn
that referenced
this issue
Feb 24, 2022
In this particular code path, we were passing null for the frozen source generated document state when we could have passed it along. The original logic here was frozen source generated documents only normally appear when somebody calls ITextSnapshot.GetOpenDocumentInCurrentContextWithChanges, since we need to ensure that there is a generated document with that exact snapshot for the feature to work. We should never see that in a "primary" solution in any way. However, solution sync uses CurrentSolution as a cache for the previously synced complete solution, which meant we'd still end up calling this anyways. Although we could (and probably should) avoid caching these special solutions entirely, this avoids any surprises here and makes things behave like normal, and avoids odd cases where the CompilationTrackers are out of sync with this field. This partially addresses dotnet#57082
jasonmalinowski
added a commit
to jasonmalinowski/roslyn
that referenced
this issue
Feb 24, 2022
The previous assumption in this code was incorrect -- we absolutely can end up with a frozen generated document in CurrentSolution, since the remote workspace caches things there. We're going to just run with that and consider that normal, so we'll fix up the code to support it cleanly. Fixes dotnet#57082 Fixes dotnet#56998
jasonmalinowski
added a commit
to jasonmalinowski/roslyn
that referenced
this issue
Feb 24, 2022
When we are synchronizing solutions, the previous assumption in this code was incorrect -- we absolutely can end up with a frozen generated document in CurrentSolution, since the remote workspace caches things there. We're going to just run with that and consider that normal, so we'll fix up the code to support it cleanly. Fixes dotnet#57082 Fixes dotnet#56998
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Area-IDE
Bug
Tenet-Reliability
Customer telemetry indicates that the product is failing in a crash/hang/dataloss manner.
🔗 Also reported internally as AB#1438489
The text was updated successfully, but these errors were encountered: