You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When parsing a coverage dat file where leads to section.lines.details or section.branches.details's element in renderer will lead to Illegal argument: line must be non-negative.
To Reproduce
Steps to reproduce the behaviour:
Create a coverage lcov file containing information at line 0.
Enable coverage display
Expected behaviour
They should be ignored and not affect display coverage info.
Screenshots
Traceback:
Error: Illegal argument: line must be non-negative
at $ (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:10:1101)
at new n (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:103:4331)
at new o (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:103:5847)
at /Users/****/.vscode/extensions/ryanluker.vscode-coverage-gutters-2.11.0/out/src/coverage-system/renderer.js:92:34
at Array.forEach (<anonymous>)
at Renderer.filterBranchCoverage (/Users/****/.vscode/extensions/ryanluker.vscode-coverage-gutters-2.11.0/out/src/coverage-system/renderer.js:91:14)
at /Users/****/.vscode/extensions/ryanluker.vscode-coverage-gutters-2.11.0/out/src/coverage-system/renderer.js:59:18
at Array.forEach (<anonymous>)
at Renderer.filterCoverage (/Users/****/.vscode/extensions/ryanluker.vscode-coverage-gutters-2.11.0/out/src/coverage-system/renderer.js:57:18)
at /Users/****/.vscode/extensions/ryanluker.vscode-coverage-gutters-2.11.0/out/src/coverage-system/renderer.js:36:18
at Array.forEach (<anonymous>)
at Renderer.renderCoverage (/Users/****/.vscode/extensions/ryanluker.vscode-coverage-gutters-2.11.0/out/src/coverage-system/renderer.js:25:21)
at CoverageService.<anonymous> (/Users/****/.vscode/extensions/ryanluker.vscode-coverage-gutters-2.11.0/out/src/coverage-system/coverageservice.js:99:31)
at Generator.next (<anonymous>)
at fulfilled (/Users/****/.vscode/extensions/ryanluker.vscode-coverage-gutters-2.11.0/node_modules/tslib/tslib.js:115:62)
Desktop (please complete the following information):
OS: macosx
Extension Version 2.11.0
VSCode Version 1.82.0
Additional context
I think it should be a easy fix by changing the filter in Line 67 and 90 from >= to >.
The text was updated successfully, but these errors were encountered:
Describe the bug
When parsing a coverage dat file where leads to
section.lines.details
orsection.branches.details
's element inrenderer
will lead toIllegal argument: line must be non-negative
.To Reproduce
Steps to reproduce the behaviour:
Expected behaviour
They should be ignored and not affect display coverage info.
Screenshots
Traceback:
Desktop (please complete the following information):
Additional context
I think it should be a easy fix by changing the filter in Line 67 and 90 from
>=
to>
.The text was updated successfully, but these errors were encountered: