Closed zgoda-mobica closed 6 years ago
@zgoda-mobica thanks for opening an issue. This is an interesting one, when you mentioned the second time around you changed name of coverage file, removed config, reloaded IDE, enabled watch
did you also change the the value of xmlname to cov.xml
? Good to see that it works now but definitely there is an issue here with the config loading (currently it caches the settings on load and then on some settings never refreshes the in memory ones until the IDE or extension reloads).
No, I just removed configuration entry in workspace settings to use default.
I am running into the same issue (without the part about things working after an uninstall/reinstall). In my case, I was able to root cause the problem to the glob expression on line 87 in fileLoader.js. If I change the expression from **/${fileName}
to **${fileName}
, things work as expected (no error message and I can see the coverage info displayed based on information in the file).
I don't know much about the glob implementation, but my guess is that this may not be the right fix as it looks like the glob docs suggest that globstar patterns represent 0 or more dirs. That pattern should should resolve to 0 dirs in this particular use case.
@davidbrownell thanks for the extra info, is the fix you mentioned also fixing the issue you raised #156 ? I will look into this bug for the 2.1.1 release anyways but any extra info helps :smile:
Thanks for taking a look, @ryanluker. Unfortunately, this work around doesn't fix #156.
@zgoda-mobica going to close this issue unless it comes up again with you or someone else, thanks for submitting it though!
I am still experiencing this issue with 2.1.1. Changing **/${fileName}
to **${fileName}
addresses the issue for me.
My test run produces xml output in the file
cov.xml
and places it in workspace folder but I keep getting this error:Before I installed this extension the name of a file was
coverage.xml
. Got the above error, changed"coverage-gutters.xmlname"
value tocoverage.xml
, reloaded VSCode and tried to add watch, same error. Changed name of coverage results file, removed config, reloaded VSCode, enabled watch - same error. Now the fun part begins: uninstalled extension and installed it again, enabled watch and boom, everything works.