Open augustocdias opened 2 years ago
This comes from build-std being set https://github.com/wireapp/core-crypto/blob/36e34cacf1d143864795209f26b2579f01420408/.cargo/config.toml#L23, so when we compile build scripts the target flag is missing which becomes required with that setting I think. You can probably fix this by setting rust-analyzer.cargo.target
to your host triple though that will cause analysis to consider the host triple only as well.
That project depends on nightly rustc: https://github.com/wireapp/core-crypto/blob/36e34cacf1d143864795209f26b2579f01420408/.cargo/config.toml#L22 Try rustup override set nightly
in the project directory and reopen vim.
This comes from build-std being set https://github.com/wireapp/core-crypto/blob/36e34cacf1d143864795209f26b2579f01420408/.cargo/config.toml#L23, so when we compile build scripts the target flag is missing which becomes required with that setting I think. You can probably fix this by setting
rust-analyzer.cargo.target
to your host triple though that will cause analysis to consider the host triple only as well.
This worked but not ideal :/
That project depends on nightly rustc: https://github.com/wireapp/core-crypto/blob/36e34cacf1d143864795209f26b2579f01420408/.cargo/config.toml#L22 Try rustup override set nightly in the project directory and reopen vim.
This had not effect at all.
Another issue I have in this specific project is that I get no diagnostics other than syntax errors. If I return the wrong type in a function it doesn't show anything.
I have a similar problem while working with autogenerated rust files, rust-analyzer cannot run the build script needed for generating the files (using capnp)
rust-analyzer version: rust-analyzer 0.3.1238-standalone (61504c8d9 2022-10-08)
rustc version: rustc 1.64.0 (a55dd71d5 2022-09-19)
Opening this project (https://github.com/wireapp/core-crypto) I'm running into the following errors:
I could reproduce it in neovim and in vscode. The cyclic deps error are dev-dependencies and I think this is reported already.