Comments (3)
Thanks for the ticket @wardy3!
I vaguely remember other people having this issue, and it was due to how the extension matches coverage to source files.
Can you provide a copy of the coverage section structure that is printed in the debug logs?
cmd(ctrl)-shift-p -> Search Show Logs -> Extension Host
In addition to that, you could try using absolute paths instead of relative and that might fix your issue as well. (note, your coverage file will need to also provide absolute paths instead of relative as well)
https://github.com/ryanluker/vscode-coverage-gutters/blob/master/package.json#L112-L126
See an example here of a cov.xml
https://github.com/ryanluker/vscode-coverage-gutters/blob/master/example/python/cov.xml#L6
from vscode-coverage-gutters.
The extension host output is blank. I tried going via cmd-shift-p -> Developer: show logs... -> Extension host and it brings me to the same place
as far as coverage-gutters output though, there's this (with the source and test file I'm playing with now)
[1676359753825][coverageservice]: LOADING
[1676359758272][coverageservice]: Loading 2 file(s)
[1676359758272][coverageservice]: /Users/wardy/Documents/EMC/gitlab.nosync/storage/cov.xml,/Users/wardy/Documents/EMC/gitlab.nosync/storage/tests/cov.xml
[1676359758275][coverageservice]: Loaded 2 data file(s)
[1676359758564][coverageservice]: Caching 179 coverage(s)
[1676359758564][coverageservice]: READY
[1676359758564][coverageservice]: RENDERING
[1676359758565][renderer][section test name]: isi_alloc.py
[1676359758565][renderer][section file path]: /Users/wardy/Documents/EMC/gitlab.nosync/storage/isi_alloc.py
[1676359758565][renderer][section test name]: test_isi_alloc.py
[1676359758565][renderer][section file path]: /Users/wardy/Documents/EMC/gitlab.nosync/storage/tests/isi_sdk_tests/test_isi_alloc.py
[1676359758566][renderer][section test name]: test_isi_alloc.py
[1676359758566][renderer][section file path]: /Users/wardy/Documents/EMC/gitlab.nosync/storage/tests/isi_sdk_tests/test_isi_alloc.py
[1676359758566][coverageservice]: READY
[1676359758567][coverageservice]: Listening to file system at {/Users/wardy/Documents/EMC/gitlab.nosync/storage}/**/{lcov.info,cov.xml,coverage.xml,jacoco.xml,coverage.cobertura.xml}
[1676359770453][coverageservice]: RENDERING
[1676359770454][renderer][section test name]: isi_alloc.py
[1676359770454][renderer][section file path]: /Users/wardy/Documents/EMC/gitlab.nosync/storage/isi_alloc.py
[1676359770455][renderer][section test name]: test_isi_alloc.py
[1676359770455][renderer][section file path]: /Users/wardy/Documents/EMC/gitlab.nosync/storage/tests/isi_sdk_tests/test_isi_alloc.py
[1676359770456][coverageservice]: READY
[1676359803083][coverageservice]: RENDERING
[1676359803084][renderer][section test name]: isi_alloc.py
[1676359803084][renderer][section file path]: /Users/wardy/Documents/EMC/gitlab.nosync/storage/isi_alloc.py
[1676359803084][renderer][section test name]: test_isi_alloc.py
[1676359803084][renderer][section file path]: /Users/wardy/Documents/EMC/gitlab.nosync/storage/tests/isi_sdk_tests/test_isi_alloc.py
[1676359803085][renderer][section test name]: test_isi_alloc.py
[1676359803085][renderer][section file path]: /Users/wardy/Documents/EMC/gitlab.nosync/storage/tests/isi_sdk_tests/test_isi_alloc.py
[1676359803085][coverageservice]: READY
[1676359831041][coverageservice]: RENDERING
[1676359831042][renderer][section test name]: isi_alloc.py
[1676359831042][renderer][section file path]: /Users/wardy/Documents/EMC/gitlab.nosync/storage/isi_alloc.py
[1676359831042][renderer][section test name]: test_isi_alloc.py
[1676359831042][renderer][section file path]: /Users/wardy/Documents/EMC/gitlab.nosync/storage/tests/isi_sdk_tests/test_isi_alloc.py
[1676359831043][coverageservice]: READY
[1676359848779][coverageservice]: RENDERING
[1676359848780][renderer][section test name]: isi_alloc.py
[1676359848780][renderer][section file path]: /Users/wardy/Documents/EMC/gitlab.nosync/storage/isi_alloc.py
[1676359848781][renderer][section test name]: test_isi_alloc.py
[1676359848781][renderer][section file path]: /Users/wardy/Documents/EMC/gitlab.nosync/storage/tests/isi_sdk_tests/test_isi_alloc.py
[1676359848781][renderer][section test name]: test_isi_alloc.py
[1676359848781][renderer][section file path]: /Users/wardy/Documents/EMC/gitlab.nosync/storage/tests/isi_sdk_tests/test_isi_alloc.py
[1676359848781][coverageservice]: READY
[1676359848903][coverageservice]: RENDERING
[1676359848904][renderer][section test name]: isi_alloc.py
[1676359848904][renderer][section file path]: /Users/wardy/Documents/EMC/gitlab.nosync/storage/isi_alloc.py
[1676359848905][renderer][section test name]: test_isi_alloc.py
[1676359848905][renderer][section file path]: /Users/wardy/Documents/EMC/gitlab.nosync/storage/tests/isi_sdk_tests/test_isi_alloc.py
[1676359848905][coverageservice]: READY
[1676359863721][coverageservice]: RENDERING
[1676359863721][renderer][section test name]: isi_alloc.py
[1676359863721][renderer][section file path]: /Users/wardy/Documents/EMC/gitlab.nosync/storage/isi_alloc.py
[1676359863722][renderer][section test name]: test_isi_alloc.py
[1676359863722][renderer][section file path]: /Users/wardy/Documents/EMC/gitlab.nosync/storage/tests/isi_sdk_tests/test_isi_alloc.py
[1676359863723][renderer][section test name]: test_isi_alloc.py
[1676359863723][renderer][section file path]: /Users/wardy/Documents/EMC/gitlab.nosync/storage/tests/isi_sdk_tests/test_isi_alloc.py
[1676359863723][coverageservice]: READY
[1676359879010][coverageservice]: RENDERING
[1676359879010][renderer][section test name]: isi_alloc.py
[1676359879010][renderer][section file path]: /Users/wardy/Documents/EMC/gitlab.nosync/storage/isi_alloc.py
[1676359879011][renderer][section test name]: test_isi_alloc.py
[1676359879011][renderer][section file path]: /Users/wardy/Documents/EMC/gitlab.nosync/storage/tests/isi_sdk_tests/test_isi_alloc.py
[1676359879012][coverageservice]: READY
Yeah, this seems to have fixed it
"coverage-gutters.coverageBaseDir": "/Users/wardy/Documents/EMC/gitlab.nosync/storage/cov.xml",
"coverage-gutters.manualCoverageFilePaths": [
"/Users/wardy/Documents/EMC/gitlab.nosync/storage/cov.xml"
]
the cov.xml
file already had a full path
<sources>
<source>/Users/wardy/Documents/EMC/gitlab.nosync/storage</source>
</sources>
and
<class name="test_isi_alloc.py" filename="tests/isi_sdk_tests/test_isi_alloc.py" complexity="0" line-rate="1" branch-rate="0">
main difference I can see in the log is this line:
[1676361128927][coverageservice]: Listening to file system at {/Users/wardy/Documents/EMC/gitlab.nosync/storage/cov.xml}
Was it getting confused with the glob pattern before?
(more log after it started working below)
[1676361128927][coverageservice]: READY
[1676361128927][coverageservice]: Listening to file system at {/Users/wardy/Documents/EMC/gitlab.nosync/storage/cov.xml}
[1676361140894][coverageservice]: RENDERING
[1676361140895][renderer][section test name]: test_isi_alloc.py
[1676361140895][renderer][section file path]: /Users/wardy/Documents/EMC/gitlab.nosync/storage/tests/isi_sdk_tests/test_isi_alloc.py
[1676361140896][renderer][section test name]: test_isi_alloc.py
[1676361140896][renderer][section file path]: /Users/wardy/Documents/EMC/gitlab.nosync/storage/tests/isi_sdk_tests/test_isi_alloc.py
[1676361140896][coverageservice]: READY
[1676361158626][coverageservice]: RENDERING
[1676361158627][coverageservice]: READY
[1676361158673][coverageservice]: RENDERING
[1676361158674][coverageservice]: READY
[1676361169382][coverageservice]: LOADING
[1676361169382][coverageservice]: Loading 1 file(s)
[1676361169382][coverageservice]: /Users/wardy/Documents/EMC/gitlab.nosync/storage/cov.xml
[1676361169383][coverageservice]: Loaded 1 data file(s)
[1676361169383][coverageservice]: Caching 0 coverage(s)
[1676361169383][coverageservice]: READY
[1676361169383][coverageservice]: RENDERING
[1676361169383][coverageservice]: READY
[1676361170689][coverageservice]: RENDERING
[1676361170689][coverageservice]: READY
[1676361170732][coverageservice]: RENDERING
[1676361170733][coverageservice]: READY
[1676361173143][coverageservice]: LOADING
[1676361173144][coverageservice]: Loading 1 file(s)
[1676361173144][coverageservice]: /Users/wardy/Documents/EMC/gitlab.nosync/storage/cov.xml
[1676361173145][coverageservice]: Loaded 1 data file(s)
[1676361173600][coverageservice]: Caching 178 coverage(s)
[1676361173600][coverageservice]: READY
[1676361173600][coverageservice]: RENDERING
[1676361173601][renderer][section test name]: test_isi_alloc.py
[1676361173601][renderer][section file path]: /Users/wardy/Documents/EMC/gitlab.nosync/storage/tests/isi_sdk_tests/test_isi_alloc.py
[1676361173603][renderer][section test name]: test_isi_alloc.py
[1676361173603][renderer][section file path]: /Users/wardy/Documents/EMC/gitlab.nosync/storage/tests/isi_sdk_tests/test_isi_alloc.py
[1676361173603][coverageservice]: READY
[1676361177818][coverageservice]: RENDERING
[1676361177819][renderer][section test name]: test_isi_alloc.py
[1676361177819][renderer][section file path]: /Users/wardy/Documents/EMC/gitlab.nosync/storage/tests/isi_sdk_tests/test_isi_alloc.py
[1676361177820][renderer][section test name]: isi_alloc.py
[1676361177820][renderer][section file path]: /Users/wardy/Documents/EMC/gitlab.nosync/storage/isi_alloc.py
[1676361177820][renderer][section test name]: isi_alloc.py
[1676361177820][renderer][section file path]: /Users/wardy/Documents/EMC/gitlab.nosync/storage/isi_alloc.py
[1676361177820][coverageservice]: READY
[1676361183304][coverageservice]: RENDERING
[1676361183304][renderer][section test name]: test_isi_alloc.py
[1676361183304][renderer][section file path]: /Users/wardy/Documents/EMC/gitlab.nosync/storage/tests/isi_sdk_tests/test_isi_alloc.py
[1676361183305][coverageservice]: READY
[1676361183343][coverageservice]: RENDERING
[1676361183343][renderer][section test name]: test_isi_alloc.py
[1676361183343][renderer][section file path]: /Users/wardy/Documents/EMC/gitlab.nosync/storage/tests/isi_sdk_tests/test_isi_alloc.py
[1676361183344][coverageservice]: READY
[1676361213232][coverageservice]: RENDERING
[1676361213233][renderer][section test name]: test_isi_alloc.py
[1676361213233][renderer][section file path]: /Users/wardy/Documents/EMC/gitlab.nosync/storage/tests/isi_sdk_tests/test_isi_alloc.py
[1676361213234][coverageservice]: READY
[1676361262494][coverageservice]: RENDERING
[1676361262495][renderer][section test name]: test_isi_alloc.py
[1676361262495][renderer][section file path]: /Users/wardy/Documents/EMC/gitlab.nosync/storage/tests/isi_sdk_tests/test_isi_alloc.py
[1676361262496][coverageservice]: READY
[1676361266262][coverageservice]: RENDERING
[1676361266263][coverageservice]: READY
[1676361332183][coverageservice]: RENDERING
[1676361332183][coverageservice]: READY
thanks!
from vscode-coverage-gutters.
Hmm odd that the shortcut for the developer logs didn't work... glad you found the logs another way though!
I also think you are on the right track with Was it getting confused with the glob pattern before?
as that might have been why it was confusing the two file paths and mixing up the coverages 🤔.
Thanks again for the output as well and I am glad that the absolute work around helped you out in your scenario 💪🏻.
from vscode-coverage-gutters.
Related Issues (20)
- Extension settings do not have the scope property defined HOT 3
- refactoring if clause caused extension to crash HOT 3
- update CHANGELOG.md to make changes extension-visible
- Java example pom issues and failure in mvn install HOT 2
- Cannot seem to watch files outside of VS Code workspace directory HOT 2
- Improve visibility of covered lines HOT 4
- Add support for remote coverage files HOT 3
- Support coverage reports with multiple sources HOT 2
- behavior change suggestion/rfc: statusbar should report `Math.floor` instead of `Math.round` HOT 1
- `Illegal argument: line must be non-negative` when any `detail.line` is 0 HOT 1
- Where does the watcher look for the lcov.info file? HOT 2
- Coverage information fails to render when branch coverage is enabled HOT 1
- Update deploy automation action to use v1 of external action
- Cant read coverage data from cobertura-coverage.xml HOT 1
- Don't highlight tested lines HOT 4
- vsix packaging: drop unused folders HOT 1
- cobertura Status Bar Percentage Wrong with C# Workspace HOT 6
- Attempting to parse cobertura.xml fails after converting from visual studio .coverage binary. HOT 2
- settings: resolve configuration settings HOT 1
- [Documentation] Example Java Gradle Project HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vscode-coverage-gutters.