ryanluker / vscode-coverage-gutters

Display test coverage generated by lcov and xml - works with many languages
https://marketplace.visualstudio.com/items?itemName=ryanluker.vscode-coverage-gutters
MIT License
460 stars 88 forks source link

Error Could not find a Coverage file! #273

Closed fela93 closed 4 years ago

fela93 commented 4 years ago

Describe the bug Error Could not find a Coverage file!

To Reproduce on settings.json I have exactly path to my lcov file "coverage-gutters.lcovname": "/home/user/projectx/lcov/lcov_all.info"

Expected behavior lcov should be found and loaded to see coverage

Screenshots

[1595917806633][gutters]: Error Could not find a Coverage file! [1595917806633][gutters]: Stacktrace Error: Could not find a Coverage file! at FilesLoader. (/home/user/.vscode/extensions/ryanluker.vscode-coverage-gutters-2.5.1/out/src/files/filesloader.js:32:27) at Generator.next () at fulfilled (/home/user/.vscode/extensions/ryanluker.vscode-coverage-gutters-2.5.1/out/src/files/filesloader.js:4:58)

Desktop (please complete the following information):

ryanluker commented 4 years ago

@fela93 thanks for submitting a detailed ticket! If you know exactly the lcov file you want to use it might be better using the manual option. https://github.com/ryanluker/vscode-coverage-gutters/blob/master/package.json#L132-L136

If that isn't quite working you can also keep using lcvoname but it is meant to be used with just lcov_all.info

fela93 commented 4 years ago

Thanks a lot Ryan This trick worked for me "coverage-gutters.manualCoverageFilePaths"