mozilla / grcov

Rust tool to collect and aggregate code coverage data for multiple source files
Mozilla Public License 2.0
1.17k stars 148 forks source link

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

Open trend-shane-bishop opened 1 month ago

trend-shane-bishop commented 1 month ago

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.