VisitException: Visit failed for Component (Community Edition v9.4)

Hey there.

We’ve seen some similar problem reports:

It typically boils down to:

  • The embedded H2 database being used (which is not meant for production use)
  • A very large file being indexed

How large is the file (either by file size for Lines of Code) that is mentioned in the error?

In any case since this in an XML coverage report (I’m not sure why it is being indexed in the first place), you could probably add an exclusion and be on your way.

/d:sonar.exclusions=**/coverage.opencover.xml

The Scanner for .NET relies on the .csproj files in a project to direct it to which files it should analyze. Perhaps you have a very wide inclusion for XML files? See the documentation on Advanced Topics > Analyzing languages other than C# and VB