Failed to load coverage: The file was not recognized as a valid object file - in WSL #316
Labels
C-bug
Category: related to a bug.
C-upstream-bug
Category: This is a bug of compiler or dependencies (the fix may require action in the upstream)
This seems to be the same as #48 , however
cargo clean
did not fix it.Running
cargo clean
results in the same error. Running withCARGO_INCREMENTAL=0 cargo +stable llvm-cov --lcov --output-path lcov.info
results in the same error.The error occurs is in Ubuntu in WSL with a Windows folder (
/mnt/c/Users/robo9k/projects/rust-magic
).When running this in a Linux directory (e.g.
mktemp -d
) instead, the command works:I'm not sure if this is even something you can reasonably fix in
cargo-llvm-cov
. Just thought I'd file an issue so others can find the information/workaround. Feel free to close this right away.The text was updated successfully, but these errors were encountered: