WSL coverage path



I am trying to get code coverage to work with WSL 1 on Ubuntu 20.04 LTS. I have GCC-9 installed an added the coverage flag in my CMakeLists, but Clion cannot automatically find the path for gcov. When finding the file manually using the gcov executable path finder I can find the file, e.g., "\\wsl$\Ubuntu\usr\bin\gcov". But when running my code I get the following error message:

Failed to generate coverage data
env: å€~//wsl$/Ubuntu/usr/bin/gcovå€tm: no such file or directory

I found this issue posted in 2019:, but that was reportedly fixed back then. What am I doing wrong?


EDIT: Using the Clion UI to find the file produces the above error, but manually writing the file location, e.g., "/usr/bin/gcov", works.