rust-lang / rust-analyzer

A Rust compiler front-end for IDEs
https://rust-analyzer.github.io/
Apache License 2.0
13.98k stars 1.55k forks source link

Failed to get file metadata #8573

Closed AurevoirXavier closed 3 years ago

AurevoirXavier commented 3 years ago

So many many this error

proc macro returned error: Failed to get file metadata for /root/Documents/darwinia-network/common/target/debug/deps/libparity_scale_codec_derive-e63e0768c2091177.so: Os { code: 2, kind: NotFound, message: "No such file or directory" }

But if I reopen the file, this error gone

edwin0cheng commented 3 years ago

What rustc version you are using ? we only support proc-macro supported up to 1.50 +

And maybe you could try to cargo clean and rebuilt the proc-macro to see if the error is gone.