-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
builds breaking because analyzers fail with Value cannot be null. (Parameter 'type')
#82467
Comments
CSharpMarkAssembliesWithNeutralResourcesLanguageAnalyzer
fails with Value cannot be null. (Parameter 'type')
CSharpMarkAssembliesWithNeutralResourcesLanguageAnalyzer
fails with Value cannot be null. (Parameter 'type')
This isn't specific to wasm is it? |
CSharpMarkAssembliesWithNeutralResourcesLanguageAnalyzer
fails with Value cannot be null. (Parameter 'type')
CSharpMarkAssembliesWithNeutralResourcesLanguageAnalyzer
fails with Value cannot be null. (Parameter 'type')
Seems pretty much every PR is hitting this on at least one leg. It's also not always the same analyzer failing. Did we recently take updates to anything to do with Roslyn, compiler dependencies, etc? |
Yes, we recently updated Roslyn. We have a PR out to revert the update as it's also causing timeouts. |
cc: @jaredpar |
revert pr is #82466 |
Merged to unblock |
Should we keep this open now that #82466 went in? |
probably at least until we have a roslyn issue tracking the regression here. we have #82583 tracking performance and dotnet/roslyn#66900 tracking the parameter regression but nothing tracking these seemingly random analyzer failures |
CSharpMarkAssembliesWithNeutralResourcesLanguageAnalyzer
fails with Value cannot be null. (Parameter 'type')
Value cannot be null. (Parameter 'type')
@jaredpar have we ruled out the cause possibly being recent analyzer loader changes? |
@RikkiGibson seems doubtful it's related. Generally analyzer load failures will result in missing method exception, assembly load, file not found, etc ... The failures would also be very deterministic. This is a random-ish failure on a But @stephentoub mentioned
So probably not in the specific analyzer. May need to grab a debug compiler and push it through the paces here. One where we can add some more diagnostics / trigger fail fasts so we can see what is going on. Another potential reason is the underlying CLR bug causing #82583 is manifesting here as well. |
@lewing my investigation into this is proving difficult until we get |
Have PR #82734 where I'm simply pushing the compiler forward now that runtime has moved to The PR #82734 is complicated because of the high number of test failures. Looking through the individual failures though I don't see the analyzer failure anymore. It's consistently popped up at least once in all my test runs against older CLR versions. It's undeniably a race condition of sorts though so even a clean run isn't good evidence of success. I'm going to force another run here. If we don't see any more instances of this failure then I think the best path forward is to assume #80822 was the root of the failure and move forward with a new Roslyn drop. If that proves wrong we can back it out. |
Had multiple successful builds with the patched runtime. At this point reached the conclusion that it was a side effect of #80822. If this problem returns after we move to a new Roslyn compiler in the future please let me know and I will dig into it further. |
Failing rolling build hit for
browser-wasm windows Release LibraryTests_AOT
:CSC : error CS8032: An instance of analyzer Microsoft.NetCore.CSharp.Analyzers.Resources.CSharpMarkAssembliesWithNeutralResourcesLanguageAnalyzer cannot be created from D:\a\_work\1\s\.packages\microsoft.codeanalysis.netanalyzers\8.0.0-preview1.23117.2\analyzers\dotnet\cs\Microsoft.CodeAnalysis.CSharp.NetAnalyzers.dll : Value cannot be null. (Parameter 'type'). [D:\a\_work\1\s\src\libraries\System.ComponentModel.Composition.Registration\src\System.ComponentModel.Composition.Registration.csproj::TargetFramework=net8.0]
Changes since the last passing rolling build - f6bed51...2819a94
cc @lewing @steveisok
Known Issue Error Message
Fill the error message using known issues guidance.
Report
Summary
The text was updated successfully, but these errors were encountered: