SonarCloud "main branch empty" and "no lines of code"

We have been using SonarCloud successfully for about a year on our private projects. Recently, the main page on our organization shows “The main branch of this project is empty” for the Project in question, and the browser for the branch itself shows “The main branch has no lines of code.” The code page on the project however, does show our code as expected. All the analysis themselves look fine, and all background tasks show successful completion.

I have cleared out all the PRs from the “Branches and Pull Requests” page, and noticed that there was a weird instance where one main branch appeared as though it was a PR into another main branch. I have also tried re-naming the main branch and running a new build to see if the newly listed branch was shown correctly, and it was not.

ALM: Bitbucket Cloud
CI: TeamCity
Scanner: sonar-scanner-msbuild-
Language: C#

Our command line to start scanning looks like:

  C:\sonar-scanner-msbuild-\SonarScanner.MSBuild.exe begin `
   /o:<org> `
   / `
   /d:sonar.login=<login> `
   /k:<Project> `
   /n:<Project> `
   /v: `
   / `
   /d:sonar.inclusions=Navigator*/**/*.cs `
   /d:sonar.exclusions=**/*.g.cs,**/*.Designer.cs,ConfigurationConverter/**/* `

Hi @jvisser, welcome to the community !

Are you analyze javascript / typescript code as well as part of this scan by chance ?


No I am not, this is purely C# code. The inclusions should analysis just C#.

Thanks @jvisser

Can you share a debug log of the “end” step please ? it will help us troubleshoot.

Thanks !

Thanks! Attached is a log. If this isn’t detailed enough, how do I increase the log level?

sonarcloud.log (449.2 KB)

@jvisser apologies for the delay in responding. Is this still an issue?