22# so that r-a's checks don't block user `x` commands and vice-verse.
33# R-a's build directory is located in `build-rust-analyzer`.
44#
5- # To build rustfmt and proc macro server for r-a run the following command:
5+ # To download rustfmt and proc macro server for r-a run the following command
6+ # (proc macro server is downloaded automatically with pretty much any command,
7+ # this specific one also downloads rustfmt):
68# ```
7- # x b proc-macro-srv-cli rustfmt --stage 0 --build-dir build-rust-analyzer
9+ # x fmt --check
810# ```
11+ # (if that doesn't work -- do `x clean` first)
912
1013[language-server .rust-analyzer .config ]
1114linkedProjects = [
@@ -18,7 +21,6 @@ linkedProjects = [
1821]
1922
2023[language-server .rust-analyzer .config .check ]
21- invocationLocation = " root"
2224invocationStrategy = " once"
2325overrideCommand = [
2426 " python3" ,
@@ -31,12 +33,12 @@ overrideCommand = [
3133
3234[language-server .rust-analyzer .config .rustfmt ]
3335overrideCommand = [
34- " build-rust-analyzer /host/rustfmt/bin/rustfmt" ,
36+ " build/host/rustfmt/bin/rustfmt" ,
3537 " --edition=2024"
3638]
3739
3840[language-server .rust-analyzer .config .procMacro ]
39- server = " build-rust-analyzer /host/stage0/libexec/rust-analyzer-proc-macro-srv"
41+ server = " build/host/stage0/libexec/rust-analyzer-proc-macro-srv"
4042enable = true
4143
4244[language-server .rust-analyzer .config .rustc ]
@@ -50,14 +52,13 @@ RUSTC_BOOTSTRAP = "1"
5052
5153[language-server .rust-analyzer .config .cargo .buildScripts ]
5254enable = true
53- invocationLocation = " root"
5455invocationStrategy = " once"
5556overrideCommand = [
5657 " python3" ,
5758 " x.py" ,
5859 " check" ,
5960 " --json-output" ,
61+ " --compile-time-deps" ,
6062 " --build-dir" ,
6163 " build-rust-analyzer" ,
62- " --compile-time-deps" ,
6364]
0 commit comments