I am working on Frontier with the vscode. But RA always complains about the below errors. This question has troubled many people, there is another issue describing this, error on rust analyzer · Issue #709 · paritytech/frontier · GitHub. Any advice about this?
The RA server log:
[ERROR rust_analyzer::lsp_utils] failed to run build scripts
error: failed to run custom build command for `frontier-template-runtime v0.0.0 (/home/bear/working/darwinia/frontier/template/runtime)`
Caused by:
process didn't exit successfully: `/home/bear/working/darwinia/frontier/target/debug/build/frontier-template-runtime-94adee7a60ecefe6/build-script-build` (exit status: 1)
--- stdout
e[1;33mInformation that should be included in a bug report.e[0m
e[1;33mExecuting build command:e[0m "/home/bear/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/bin/cargo" "rustc" "--target=wasm32-unknown-unknown" "--manifest-path=/home/bear/working/darwinia/frontier/target/debug/wbuild/frontier-template-runtime/Cargo.toml" "--color=always" "--profile" "release"
e[1;33mUsing rustc version:e[0m rustc 1.66.0-nightly (9c56d9d6f 2022-09-29)
How to reproduce
Make sure rustup target add wasm32-unknown-unknown --toolchain nightly
the wasm target is installed before reproducing.
1. git clone https://github.com/paritytech/frontier.git
2. Add this repo to your Vscode editor, then, you can see the error after a while.