Closed mdeloof closed 2 years ago
Ok, found the issue. I had exported LIBCLANG_PATH
inside my shell, so it was picked up when running cargo build
, but not by rust-analyzer. Setting the environment variable in config.toml
solved this.
[env]
LIBCLANG_PATH = { value = "/path/to/espressif/clang/lib/" }
Compilation is successful but rust analyzer throws an error in VSCode. Is this expected behaviour or does rust analyzer need some further configuration in order to work?
Rust Analyzer Server Logs: