Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
trend-shane-bishop opened this issue Jul 19, 2024 · 1 comment

Comments

@trend-shane-bishop
Copy link

trend-shane-bishop commented Jul 19, 2024

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.

@marco-c
Copy link
Collaborator

marco-c commented Sep 24, 2024

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

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

No branches or pull requests

2 participants