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

Improve analyzer consistency check message #73329

Merged
merged 3 commits into from
May 6, 2024
Merged

Conversation

jaredpar
Copy link
Member

@jaredpar jaredpar commented May 3, 2024

This changes the message when analyzer consistency checks fail to use the original location for both the requested load and the initial load. Previously the initial load was showing the shadow copy path. That is much less actionable by customers.

Before

CompilerServer: server failed - server rejected the request due to
analyzer / generator issues 'analyzer assembly 'e:\nuget\packages\microsoft.extensions.logging.abstractions\6.0.0\analyzers\dotnet\roslyn3.11\cs\Microsoft.Extensions.Logging.Generators.dll' has MVID '411719f3-42a9-4e21-8529-264aea08538c' but loaded assembly 'C:\Users\jaredpar\AppData\Local\Temp\VBCSCompiler\AnalyzerAssemblyLoader\ae4813f7a72847839648de6bc4d9dffd\26\Microsoft.Extensions.Logging.Generators.dll' has MVID '620a3d95-9a61-4671-81a7-5380bd2e5574'

After

CompilerServer: server failed - server rejected the request due to analyzer / generator issues 'analyzer assembly 'e:\nuget\packages\microsoft.extensions.logging.abstractions\6.0.0\analyzers\dotnet\roslyn3.11\cs\Microsoft.Extensions.Logging.Generators.dll' has MVID '411719f3-42a9-4e21-8529-264aea08538c' but loaded assembly 'e:\nuget.nuget\packages\microsoft.extensions.logging.abstractions\6.0.0\analyzers\dotnet\roslyn4.0\cs\Microsoft.Extensions.Logging.Generators.dll' has MVID '620a3d95-9a61-4671-81a7-5380bd2e5574'

This changes the message when analyzer consistency checks fail to use
the original location for both the requested load and the initial load.
Previously the initial load was showing the shadow copy path. That is
_much_ less actionable by customers.

Before

> CompilerServer: server failed - server rejected the request due to
analyzer / generator issues 'analyzer assembly 'e:\nuget\packages\microsoft.extensions.logging.abstractions\6.0.0\analyzers\dotnet\roslyn3.11\cs\Microsoft.Extensions.Logging.Generators.dll' has MVID '411719f3-42a9-4e21-8529-264aea08538c' but loaded assembly 'C:\Users\jaredpar\AppData\Local\Temp\VBCSCompiler\AnalyzerAssemblyLoader\ae4813f7a72847839648de6bc4d9dffd\26\Microsoft.Extensions.Logging.Generators.dll' has MVID '620a3d95-9a61-4671-81a7-5380bd2e5574'

After

> CompilerServer: server failed - server rejected the request due to analyzer / generator issues 'analyzer assembly 'e:\nuget\packages\microsoft.extensions.logging.abstractions\6.0.0\analyzers\dotnet\roslyn3.11\cs\Microsoft.Extensions.Logging.Generators.dll' has MVID '411719f3-42a9-4e21-8529-264aea08538c' but loaded assembly 'e:\nuget\.nuget\packages\microsoft.extensions.logging.abstractions\6.0.0\analyzers\dotnet\roslyn4.0\cs\Microsoft.Extensions.Logging.Generators.dll' has MVID '620a3d95-9a61-4671-81a7-5380bd2e5574'
@jaredpar jaredpar requested a review from a team as a code owner May 3, 2024 16:14
@dotnet-issue-labeler dotnet-issue-labeler bot added Area-Analyzers untriaged Issues and PRs which have not yet been triaged by a lead labels May 3, 2024
@jaredpar
Copy link
Member Author

jaredpar commented May 3, 2024

@dotnet/roslyn-compiler PTAL

@jaredpar jaredpar added this to the 17.11 milestone May 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Compilers 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