dotnet / roslyn-analyzers

MIT License
1.59k stars 465 forks source link

PointToAnalysis doesn't support infer new C# pattern #5893

Open Cosifne opened 2 years ago

Cosifne commented 2 years ago

I get this error when running IEnumerable Analyzer over Roslyn solution. See this error message: image

I think it is complaining about not be able to find the type for https://github.com/dotnet/roslyn/blob/03016afce9f0980b4a740268650edec83b79fc84/src/Compilers/CSharp/Portable/CommandLine/CSharpCommandLineParser.cs#L342

And the assert fails at https://github.com/dotnet/roslyn-analyzers/blob/f34648b42893249f08cee2dd5bf18c7257686ced/src/Utilities/FlowAnalysis/FlowAnalysis/Framework/DataFlow/DataFlowOperationVisitor.cs#L1290

How to repo

Checkout to this branch https://github.com/Cosifne/roslyn-analyzers/tree/dev/shech/TestBranch Run .\Build.cmd -Configuration Debug

Checkout to Roslyn main Run .\Build.cmd -c Release Then run .\artifacts\bin\AnalyzerRunner\Release\net472\AnalyzerRunner.exe ..\roslyn-analyzers\artifacts\bin\Microsoft.CodeAnalysis.CSharp.NetAnalyzers\Debug\netstandard2.0\ .\Roslyn.sln /concurrent /a CSharpAvoidMultipleEnumerationsAnalyzer /log Output.txt

Cosifne commented 2 years ago

@mavasani