-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Koverage showing absolute file path in explorer. #2
Comments
Any chance I can get the lcov file? It could help me investigate. Also, the actual full path to TextureAtlas.cs, just to understand the real hierarchy versus the explorer hierarchy. Last question, are you using it in macos or windows? Because for now I tested it only on macOS. FYI, to easily handle the multi-folder workspaces, I had to open the files using their full paths. I can have a look at changing that but first, I would rather fix it using full paths which will probably be quicker. |
Sure, here you go. The absolute path of the file is: My operating system is actually Linux. (Specifically Fedora 32) |
I see what's happening, don't know how to fix that yet. In my test environment (Flutter/Dart) the lcov had relative path while in your lcov, the paths are absolute. |
Could you truncate the paths when loading them? Absolute paths always start with a prefix, |
Actually, there is an easy way to check if the path is relative or absolute. |
As far as I know, LCov is allowed to use either option. While extremely uncommon, it's also technically possible to use both in the same file. |
I pushed a fix, could you get the 0.0.3-dev and test it please? |
It's working now, yes. Everything appears to be working as expected. I can also open files and all that, now. Success! |
Fixed by aacbeb7 |
It seems for some reason the explorer is showing my entire file path in the explorer instead of just the relative. It also fails to open them as a result. (i.e. ``cannot open '/home/thedudefromci/workspace//home/thedudefromci/workspace/file'`)
My settings, defined in .code-workspace file:
Also worth noting that coverage.info is an
lcov
file type.The text was updated successfully, but these errors were encountered: