SonarCloud analysis failing with SymbolicExecutionException

Template for a good new topic, formatted with Markdown:

  • ALM / CI system used: Azure DevOps
  • Scanner command used when applicable (private details masked)
  • Repository is c# and JavaScript.

This happens on a recent pull request. The code mentioned in the exception message isn’t new and hasn’t altered as part of the pull request.

CSC : warning AD0001: Analyzer 'SonarAnalyzer.Rules.CSharp.SymbolicExecutionRunner' threw an exception of type 'SonarAnalyzer.SymbolicExecution.SymbolicExecutionException' with message 'Error processing method: XxxXxxxxx ## Method file: X:\x\x\x\XxxXxxxx.XxX.XxxXxxxx\Xxxxx\XxxxXxxxxxXxxxxx.cs ## Method line: 28,8 ## Inner exception: System.NotSupportedException: ParenthesizedPattern ## at SonarAnalyzer.SymbolicExecution.Sonar.SonarExplodedGraph.VisitInstruction(ExplodedGraphNode node) ## at SonarAnalyzer.SymbolicExecution.Sonar.AbstractExplodedGraph.Walk() ## at SonarAnalyzer.Rules.CSharp.SymbolicExecutionRunner.AnalyzeSonar(SonarSyntaxNodeReportingContext context, SyntaxNode body, ISymbol symbol)'. [X:\x\x\x\XxxXxxxx.XxX.XxxXxxxx\XxxxXxxxxxXxxxxx.XxX.XxxXxxxx.csproj]

Hello @GarethWynn

thank you for reporting this bug. We created SE: SonarExplodedGraph.VisitInstruction fails for ParenthesizedPattern · Issue #6766 · SonarSource/sonar-dotnet · GitHub and will try to fix it. It would be of great help if you could provide us with
the source code of the method mentioned in the error.

Best Martin

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.