question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Coverage Gutters: Display Coverage with Watch off much slower than in previous versions

See original GitHub issue

Describe the bug In my workspace in which “Coverage Gutters: Watch” is off, 9 editor tabs are open and 69 files have coverage data execution of the “Coverage Gutters: Display Coverage” command takes about 72 seconds before the Gutters are displayed.

In another of my workspaces with 2 open editor tabs and 19 covered files, it takes 11 seconds for Coverage Gutters to display.

Until recently this command took at most 1 second to run in the same workspaces with similar numbers of open editor tabs and files with coverage data in coverage/lcov.info.

To Reproduce Steps to reproduce the behaviour:

  1. Run Mocha tests for a JavaScript project with unit test coverage measured by nyc via istanbul;
  2. Generate coverage/lcov.info from nyc-captured coverage data via nyc;
  3. Start VS Code;
  4. File | Open…, navigate to the JavaScript project folder, Open;
  5. run Coverage Gutters: Display Coverage;
  6. wait for 0.5 to 1.1 seconds per covered file before the Coverage Gutters are Displayed.

Expected behaviour Coverage Gutters display in no more than 1 second.

Screenshots Log from workspace 1:

[1540918289897][coverageservice]: LOADING
[1540918305856][coverageservice]: Loading 9 file(s)
[1540918362420][coverageservice]: Caching 69 coverage(s)
[1540918362420][coverageservice]: READY
[1540918362420][coverageservice]: RENDERING
[1540918362420][renderer][section file path]: /Users/USER/PATH/FILE.js
[1540918362421][coverageservice]: READY

Log from workspace 2:

[1540918616906][coverageservice]: LOADING
[1540918624598][coverageservice]: Loading 2 file(s)
[1540918627246][coverageservice]: Caching 19 coverage(s)
[1540918627246][coverageservice]: READY
[1540918627246][coverageservice]: RENDERING
[1540918627246][renderer][section file path]: /Users/USER/OTHERPATH/OTHERFILE.js
[1540918627247][coverageservice]: READY

Desktop (please complete the following information):

  • OS: macOS High Sierra 10.13.6
  • Extension Version 2.2.1
  • VSCode Version 1.28.2

Additional context None yet.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:13 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
ryanlukercommented, Nov 5, 2018

@jledentu @markf-hubdoc-com thanks a bunch for getting back to me with the good news. I will go ahead with making an official 2.2.2 release here in the near future when I find some free time.

0reactions
ryanlukercommented, Nov 12, 2018

Going to close this issue as it was related to the glob file path ignore issue and a fix will go out with the official 2.2.2 release shortly.

@mtycholaz and others with large lcov files that still have issues can track https://github.com/ryanluker/vscode-coverage-gutters/issues/185 instead.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[Solved] Green tests are nice, but what about coverage?
You can toggle coverage-gutters on and off by clicking Watch / Remove Watch in VSCode's status bar. b) code-coverage is a bit less...
Read more >
vscode-coverage-gutters - Bountysource
I have noticed recently that this extension seems to run slower than before and eventually end up in an unresponsive state which is...
Read more >
5 Ways to Lower Your Home Insurance Costs - This Old House
Are you paying too much or missing out on important coverage? Read our guide to learn about 5 ways to know if you're...
Read more >
The 10 Best Construction Takeoff Software of 2022
Construction takeoff is a necessary step toward estimating costs in any ... Starting with an overview of the process, we will then cover...
Read more >
Press Coverage of the Refugee and Migrant Crisis in the EU
humanitarian themes were more common in Italian coverage than in British, German or ... view of migrants and their contribution to society through...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found