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: Make sure to select valid IAnalyzerResult from Buildalyzer #2811

Merged

Conversation

0xced
Copy link
Contributor

@0xced 0xced commented Dec 30, 2023

Just like #1900 but for the InputFileResolver.

This was not an issue until phmonte/Buildalyzer#198 was reverted in phmonte/Buildalyzer@8e85a15 for the Buildalyzer 6.0.1 release. Before this change in Buildalyzer, the empty target framework was sorted last but since v6.0.1 it's sorted first instead.

Also, improve the NotSupportedException message when the language is undefined because System.NotSupportedException: Specified method is not supported is a terrible message.

Just like stryker-mutator#1900 but for the InputFileResolver.

This was not an issue until phmonte/Buildalyzer#198 was reverted in phmonte/Buildalyzer@8e85a15 for the Buildalyzer 6.0.1 release. Before this change in Buildalyzer, the empty target framework was sorted last but since v6.0.1 it's sorted first instead.

Also, improve the NotSupportedException message when the language is undefined because `System.NotSupportedException: Specified method is not supported` is a terrible message.
@rouke-broersma rouke-broersma changed the title Make sure to select valid IAnalyzerResult from Buildalyzer fix: Make sure to select valid IAnalyzerResult from Buildalyzer Dec 30, 2023
@rouke-broersma rouke-broersma merged commit 70adc60 into stryker-mutator:master Dec 30, 2023
6 checks passed
@rouke-broersma
Copy link
Member

Thanks!

@0xced 0xced deleted the fix-buildalyzer-result-selection branch December 30, 2023 19:39
0xced added a commit to 0xced/Buildalyzer that referenced this pull request Jan 6, 2024
Commit 8e85a15 dropped the NuGet.Frameworks dependency and as a result sorting of the target frameworks behaviour changed.

Previously, the `NuGetFrameworkSorter` would sort the empty target framework last. Since 8e85a15 the empty target framework is sorted first.

This commit restores the old behaviour of sorting the empty target framework last.

Note: Stryker.NET was inadvertently depending on this behaviour, so v6.0.1 broke Stryker.NET. I have [fixed the issue in Styker.NET](stryker-mutator/stryker-net#2811) but I think restoring the previous sorting behaviour is a good idea anyway.
daveaglick pushed a commit to phmonte/Buildalyzer that referenced this pull request Jan 6, 2024
Commit 8e85a15 dropped the NuGet.Frameworks dependency and as a result sorting of the target frameworks behaviour changed.

Previously, the `NuGetFrameworkSorter` would sort the empty target framework last. Since 8e85a15 the empty target framework is sorted first.

This commit restores the old behaviour of sorting the empty target framework last.

Note: Stryker.NET was inadvertently depending on this behaviour, so v6.0.1 broke Stryker.NET. I have [fixed the issue in Styker.NET](stryker-mutator/stryker-net#2811) but I think restoring the previous sorting behaviour is a good idea anyway.
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

Successfully merging this pull request may close these issues.

2 participants