Open Barugon opened 2 years ago
Would you mind giving the https://marketplace.visualstudio.com/items?itemName=matklad.rust-analyzer extension a try?
Would you mind giving the https://marketplace.visualstudio.com/items?itemName=matklad.rust-analyzer extension a try?
Thanks, I'll give it a go.
See https://blog.rust-lang.org/2022/02/21/rust-analyzer-joins-rust-org.html for context. IIRC, RA has some problems with the gdal-sys
types, but I haven't looked into those. They might be related to the build script.
Also, hello from GeoRust :smile:.
Hmm... bummer that rust-analyzer seems to ignore my tab size setting.
https://github.com/rust-analyzer/rust-analyzer/issues/1191, but you should enable format on save, make a rustfmt.toml
and configure it there.
EDIT: well, I can see how that could be quite annoying.
Here are the steps to reproduce:
Cargo.toml
file to include this dependency:gdal = {path = "../gdal"}
main.rs
. Example:use gdal::*;
Here's the error that I see in VSCode:
If I look in the
target/rls/debug/deps
folder then, sure enough, the .rmeta (and .rlib) files are missing for gdal. The project does build normally and those files are present in thetarget/debug/deps
folder.