Skip to content
This repository has been archived by the owner on Dec 3, 2021. It is now read-only.

Unable to handle absolute paths in XML class's filename field #22

Open
cassie-nahar opened this issue Dec 2, 2020 · 1 comment
Open

Comments

@cassie-nahar
Copy link

The Problems pane successfully shows messages that indicate the XML file was found, however toggling coverage display while viewing one of the source files produces no change.

Also relevant: The path listed by the file in the Problems pane is incorrect. In this particular example, it should show:

sample1.cpp /workspaces/ci-baseline/sample1/src

But instead it shows:

sample1.cpp build/workspaces/ci-baseline/sample1/src

My best guess is that the extension is expecting the XML filename values to contain relative paths. Mine has absolute paths.

@cassie-nahar
Copy link
Author

I was able to confirm my suspicion regarding absolute/relative paths by manually modifying my XML file. I had to adjust <source> from /workspaces/ci-baseline/build to /workspaces/ci-baseline, and also adjust the <class filename="/workspaces/ci-baseline/sample1/src/sample1.cpp" to <class filename="sample1/src/sample1.cpp". After that, reloading the window showed the expected behavior.

This strongly indicates that this extension cannot handle absolute paths in the XML filename field.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant