On 2025-02-22 17:29, Kabelo M'sobomvu Moiloa wrote: > This solves the issue in the sense that after wrapping rust-analyzer > appropriately according to the attached rust-analyzer launch script > [2] -- this is necessary as without rust-analyzer-proc-macro-srv is not > supposed to be launched by processses other than rust-analyzer.
Sorry, this was an incomplete sentence. I meant to say: This solves the issue temporarily: after wrapping rust-analyzer according to the attached rust-analyzer script I can now start eglot and obtain completion for std. Wrapping is necessary because one shouldn't launch rust-analyzer-proc-macro-srv directly, as it is supposed to be launched by rust-analyzer [2] itself -- so that the guix commit 01e0eb97318d3672343978d27cb07b4d9fd192f2 is a breaking change. Also, I've attached a slightly modified rust-analyzer launch script, before I was launching the rust-analyzer from the /nix/store but one can also use the one from guix (either on the rust-team branch or not) to reproduce the issue/fix. [2]
#!/gnu/store/jlqbjxk51bdq5w7wlnbmwxm1j0pnllpx-bash-minimal-5.1.16/bin/bash
if test -z "${RUST_SRC_PATH}";then export RUST_SRC_PATH="/tmp/rust-lib-src";fi;
exec -a "$0"
"/gnu/store/mmv5w28yga32i6wvmcl3ksbzi59vzb1z-rust-1.84.1-tools/bin/.rust-analyzer-real"
"$@"
-- Best regards, Kabelo M'sobomvu Moiloa
signature.asc
Description: PGP signature
