Skip to content

Address feedback on the "references newer compiler" diagnostic in the analyzer loader#62627

Merged
RikkiGibson merged 1 commit intodotnet:release/dev17.3from
RikkiGibson:referencedversion-initter-internal
Jul 14, 2022
Merged

Address feedback on the "references newer compiler" diagnostic in the analyzer loader#62627
RikkiGibson merged 1 commit intodotnet:release/dev17.3from
RikkiGibson:referencedversion-initter-internal

Conversation

@RikkiGibson
Copy link
Copy Markdown
Member

@RikkiGibson RikkiGibson commented Jul 13, 2022

Follow-up to #61261
Closes #62583

@RikkiGibson RikkiGibson requested review from a team as code owners July 13, 2022 22:38
@ghost ghost added the Area-Compilers label Jul 13, 2022
{
ReferencedCompilerVersion = errorCode is AnalyzerLoadFailureEventArgs.FailureErrorCode.ReferencesNewerCompiler ? new Version(100, 0, 0, 0) : null
};
typeNameOpt: expectsTypeName ? analyzerTypeName : null);
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

It feels like the goal of this test could be accomplished by introducing some internal helper to CreateAnalyzerLoadFailureDiagnostic which asserts that the FailureErrorCode falls within an expected range, then running the test on that helper instead of CreateAnalyzerLoadFailureDiagnostic itself. I'd prefer to keep the change minimal here for now, though.

@RikkiGibson
Copy link
Copy Markdown
Member Author

@333fred did we expect fabric-bot to leave a comment here?

@RikkiGibson
Copy link
Copy Markdown
Member Author

@Cosifne once we get this merged, we should be good to push thru QB.

@RikkiGibson RikkiGibson merged commit 097b788 into dotnet:release/dev17.3 Jul 14, 2022
@RikkiGibson RikkiGibson deleted the referencedversion-initter-internal branch July 14, 2022 01:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants