Open metehus opened 2 weeks ago
Error: Unsupported target 'x86_64-unknown-linux-gnu'
You need to make sure that rust-analyzer builds with the same set of configs as your normal cargo b
is run. E.g the stuff that is setup in .cargo/config.toml.
In this case its most likely the problem that it will build with --all-targets and this cannot work. In vscode you can set stuff like
rust-analyzer.checkOnSave.allTargets": false,
to make sure you run RA only against your current target.
I'm trying to make a new project using esp-idf with rust, and I can setup and build correctly on the terminal. The only problem is that the rust analyzer extension does not work correctly, which makes it hard to develop.
For example, some stuff works, but a lot doesn't work and keep as {unknown}
The repository of the project is https://github.com/metehus/esp-rs-idf-poc
The output of the extension is the following: