vscode-coverage-gutters: Error Failed to parse string

I’m always getting this error when i try to use the extension. I tried adding the watch on lcov.info and cobertura-coverage.xml, but the error is the same and nothing get displayed on the source code.

Here is the screenshot of the extension output: image

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 41 (23 by maintainers)

Commits related to this issue

Most upvoted comments

@Licen-it sweet this one is finally fixed, thanks for running the (almost 8 month long) marathon with me 😆 ! You can modify where the coverage is displayed by turning off and of some settings, by default it is just the gutters but you can had the coverage show up inline and on the edges.

        "coverage-gutters.showLineCoverage": {
          "type": "boolean",
          "default": false,
          "description": "show or hide the line coverage"
        },
        "coverage-gutters.showRulerCoverage": {
          "type": "boolean",
          "default": false,
          "description": "show or hide the ruler coverage"
        },
        "coverage-gutters.showGutterCoverage": {
          "type": "boolean",
          "default": true,
          "description": "show or hide the gutter coverage"
        },

@ryanluker i’m getting the same error i mentioned in my comment above and still no gutters showing the code coverage.

image

@Licen-it thanks for the continual assistance on this one, looks like @DW8Reaper has a new fix (https://github.com/ryanluker/vscode-coverage-gutters/pull/191) that may also help with your issues. I will message again once I have a new 2.3.0 pre-release for you to try.

@Licen-it thanks for submitting an issue! this is related to the score logic that was added recently and should be fixed in the next version of the extension I am working on (2.1.0). In the meantime you could try just loading lcov.info to see if that will help you til next release.