gcov-viewer icon indicating copy to clipboard operation
gcov-viewer copied to clipboard

How do I configure gcov-view in VCode + WSL?

Open totszwai opened this issue 1 year ago • 1 comments

Hello, I have my source files in a Ubuntu 22.04 WSL, the source files are in C:\Users\username\source All the gcno and gcda files are all there, but I don't think there is a way for gcov-viewer to process those files?

image

Is there a way to get it to work with a setup like Ubuntu WSL + VCode in Windows?

$ gcov --version
gcov (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

$ gcc --version
gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

$ g++ --version
g++ (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

$ lcov --version
lcov: LCOV version 1.14

totszwai avatar Jan 12 '24 01:01 totszwai

I loaded vcode inside the WSL although there are all the gcno and gcda files and the extension seems to be able to load the data... the viewer is not displaying anything.

We could see the gcovr is able to show the data image

But there are zero color highlighting in the editor.

totszwai avatar Jan 16 '24 15:01 totszwai