After adding code coverage, i can't see my file anymore

Template for a good new topic, formatted with Markdown:

  • ALM used (GitHub, Bitbucket Cloud, Azure DevOps)
    Azure Devops
  • CI system used (Bitbucket Cloud, Azure DevOps, Travis CI, Circle CI
    Azure devops
  • Scanner command used when applicable (private details masked)
    • task: SonarCloudPrepare@1
      inputs:
      SonarCloud: ‘SonarCloud For ESG’
      organization: ‘sonarcloudtools’
      scannerMode: ‘MSBuild’
      projectKey: ‘$(projectName)’
      projectName: ‘$(projectName)’
      extraProperties: |
      sonar.cs.opencover.reportsPaths=$(Build.SourcesDirectory)/**/.opencover.xml
      sonar.cs.vstest.reportsPaths=$(Agent.TempDirectory)/
      .trx
  • task: SonarCloudAnalyze@1

    • task: SonarCloudPublish@1
      inputs:
      pollingTimeoutSec: ‘300’
  • Languages of the repository
    C#
  • Only if the SonarCloud project is public, the URL
    private sonar
    • And if you need help with pull request decoration, then the URL to the PR too
  • Error observed (wrap logs/code around with triple quotes ``` for proper formatting)
    The code coverage and the sonar are goodd, but if i want to view the file in my sonar interface, i can’t . I have the following message: “The file was removed, no source code can be displayed.”
  • Steps to reproduce
    i don’t understand
  • Potential workaround
    i didn’t find

Hey there.

What link are you clicking on that takes you to this message?

Hello and thanks,

I’m clicking on the bug for sample, there is a message of the defect, then when you click, you access to the source code with the defect line.

The source code don’t display, and i have this error message.

2 Likes