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
{{ message }}
This repository was archived by the owner on Feb 28, 2026. It is now read-only.
I was able to track down what was causing the coverage to hang, but in the end I don't have a fully clear idea of why it's failing for us and presumably not for VS Code.
The line in question that led me to the fix was this :
After digging around in loader.js for a bit I was able to get it to spit out what file it came from and from there was just a matter of seeing which one of the ??'s was causing the issue.
There are numerous other reports of similar invalid code generation being done by instanbul, but since this fixes the issue and is relatively scoped I chose to end my investigation here since there isn't much value to be gained currently from digging into it more.
I'll take a look at it if I have time (but not going to prioritize it unless we have a specific need for that asap), but first order of business is to at least get these up and running again.
@chlafreniere Ok, this should fix generating coverage for the ts files now. The line commented out was added as part of the last merge - I'm going to follow up with VS Code to see if I can understand why it was added since there isn't any clues in the commit and I'm not sure why this would need to be done.
@chlafreniere Thoughts on the marked.js file showing up separately? Since it's not compiled I'm not sure there's a way to map it back to the one under src/.
So we could either leave it as it is or just remove it from the report completely.
@chlafreniere Thoughts on the marked.js file showing up separately? Since it's not compiled I'm not sure there's a way to map it back to the one under src/.
So we could either leave it as it is or just remove it from the report completely.
Personally, I'd vote for just removing it. Not convinced the value add (which itself is probably not very high -- it's not like we've made lots of changes in this file) is worth it enough to have this confusion over why the "out" folder shows up for just one file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
None yet
4 participants
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I was able to track down what was causing the coverage to hang, but in the end I don't have a fully clear idea of why it's failing for us and presumably not for VS Code.
The line in question that led me to the fix was this :
[4225:0318/190144.273645:INFO:CONSOLE(109)] "Uncaught SyntaxError: Unexpected token '??'", source: vm.js (109)After digging around in loader.js for a bit I was able to get it to spit out what file it came from and from there was just a matter of seeing which one of the ??'s was causing the issue.
There are numerous other reports of similar invalid code generation being done by instanbul, but since this fixes the issue and is relatively scoped I chose to end my investigation here since there isn't much value to be gained currently from digging into it more.
https://coveralls.io/builds/47556601