Code Inspection is broken
Hello,
I'm on a fresh new Windows 11 Pro install and ever since, “Inspect Code” seems broken. I get 200+ issues for a repository that had no issues whatsoever before (I was on Windows 10). It's literally suggesting the inverse of what it was suggesting a week ago (ie: Convert to block scoped namespace when it was file scoped a week ago).
I've tried cleaning, rebuilding, invalidating cache, deleting .idea folder, etc.
Issue started when I installed latest version (2025.3.0.1) but even with 2025.2.4, still an issue.
Or are these just the new rules and we have to fix, 200, 300, 1000 issues in all of our repos ?
Any ideas ? Thanks.
EDIT: When runnning
dotnet jb inspectcode MySolution.sln -o="sarif.json"
I get:
HResult = COR_E_APPLICATION=80131600
Roslyn error AssemblyLoading from Microsoft.CodeAnalysis.CodeStyle.Fixes: Unable to load one or more of the requested types. Method 'get_IsExtension' in type 'Microsoft.CodeAnalysis.CodeGeneration.CodeGenerationArrayTypeSymbol' from assembly 'Microsoft.CodeAnalysis.CodeStyle.Fixes, Version=4.12.12.46718, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
Please sign in to leave a comment.
Fducharme this issue likely has the same root cause as RSRP-502233 InspectCode 2025.3 fails with Microsoft.CodeAnalysis.CodeStyle.Fixes TypeLoadException on dotnet 8 (macOS). Please consider following (★) this issue for further updates. Regrettably, there are no workarounds available yet.
Kirill Filin For the moment, you can click the Severity button. The DO_NOT_SHOW category contains the issues you can ignore and other that should be fixed will be in another category
Fducharme, we've recently released an update 2025.3.0.2 that should address this and similar issues. If this issue still affects you in your environment when using this version of InspectCode, please let us know.