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

Fix NFWs due to BG SG system in non C#/VB languages #73922

Merged
merged 2 commits into from
Jun 10, 2024

Conversation

CyrusNajmabadi
Copy link
Member

@CyrusNajmabadi CyrusNajmabadi commented Jun 10, 2024

@CyrusNajmabadi CyrusNajmabadi requested a review from a team as a code owner June 10, 2024 20:30
@dotnet-issue-labeler dotnet-issue-labeler bot added Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead labels Jun 10, 2024
var versionMapBuilder = _sourceGeneratorExecutionVersionMap.Map.ToBuilder();
foreach (var projectInfo in projectInfos)
{
if (RemoteSupportedLanguages.IsSupported(projectInfo.Language))
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

note: my original approach was to have the crashing code filter out these project types there as well. But i found that i had to update a whole bunch of locations (you can see that in commit ca92b8f). I didn't like how that was bleeding out. So i just made the change here.

The change we made in #73688 ensures that no matter what the full map is in VS, we always sync just the C#/VB portion over properly when talking to OOP.

@CyrusNajmabadi
Copy link
Member Author

@ToddGrun @jasonmalinowski ptal.

Copy link
Member

@jasonmalinowski jasonmalinowski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed but still limited in context here so my signoff doesn't mean too much.

@CyrusNajmabadi
Copy link
Member Author

Reviewed but still limited in context here so my signoff doesn't mean too much.

this is one of those common cases where we just fail to test out the mixed or non-c#/vb cases. And, thanks to the ABWQ swallowing exceptions (but reporting NFWs) we don't even realize we have an issue.

Fix was fairly simple. Note: if you're not mixed, you wouldn't even notice a problem. If you were mixed, you might see SGs not update themselves.

auto-merge was automatically disabled June 10, 2024 22:00

Pull request was closed

@CyrusNajmabadi CyrusNajmabadi merged commit 32b7b6b into dotnet:main Jun 10, 2024
25 checks passed
@CyrusNajmabadi CyrusNajmabadi deleted the noCompExecutionVersion branch June 10, 2024 22:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-IDE 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.

2 participants