mozilla/grcov

grcov 0.8.19 panics with "`Option::unwrap()` on a `None` value" on Windows

trend-shane-bishop opened this issue · 1 comments

I am using grcov 0.8.19 on Windows Server 2022 x86_64. When I run the following command from Git Bash, I get a panic:

grcov . --binary-path target/debug/deps/ \
    -s . \
    -t covdir \
    --branch \
    --ignore-not-existing \
    --ignore '../*' --ignore '/*' \
    -o covdir-coverage.json

The panic:

21:12:37 [ERROR] A panic occurred at C:\Windows\system32\config\systemprofile.cargo\registry\src\index.crates.io-6f17d22bba15001f\grcov-0.8.19\src\output.rs:216: called Option::unwrap() on a None value

It appears that the panic is from this line.

@trend-shane-bishop it'd be great if you can help debug this by adding logging to that line and remove the unwraps