Open brizzbuzz opened 2 weeks ago
Can you reproduce without neovim, just running it manually?
I'm running into the same issue, trying to invoke rust-analyzer
from the cli will fail in the same way:
rust-analyzer: error while loading shared libraries: librustc_driver-b8025a1ae2c7defc.so: cannot open shared object file: No such file or directory
It's missing rpath
for some reason 🤔
➜ readelf -d $(which rust-analyzer)
Dynamic section at offset 0x199c3d8 contains 34 entries:
Tag Type Name/Value
0x0000000000000001 (NEEDED) Shared library: [librustc_driver-4766cc27bbc2a07e.so]
0x0000000000000001 (NEEDED) Shared library: [libstd-f0ae9f5a3e408c19.so]
0x0000000000000001 (NEEDED) Shared library: [libdl.so.2]
0x0000000000000001 (NEEDED) Shared library: [libgcc_s.so.1]
0x0000000000000001 (NEEDED) Shared library: [libpthread.so.0]
0x0000000000000001 (NEEDED) Shared library: [libm.so.6]
0x0000000000000001 (NEEDED) Shared library: [libc.so.6]
0x000000000000001d (RUNPATH) Library runpath: []
0x000000000000000c (INIT) 0x1f0f88
0x000000000000000d (FINI) 0x132f344
0x0000000000000019 (INIT_ARRAY) 0x18a7120
0x000000000000001b (INIT_ARRAYSZ) 24 (bytes)
0x000000000000001a (FINI_ARRAY) 0x18a7138
0x000000000000001c (FINI_ARRAYSZ) 8 (bytes)
0x0000000000000004 (HASH) 0x27d0000
0x0000000000000005 (STRTAB) 0x27e0000
0x0000000000000006 (SYMTAB) 0x16a0
0x000000000000000a (STRSZ) 29865 (bytes)
0x000000000000000b (SYMENT) 24 (bytes)
0x0000000000000015 (DEBUG) 0x0
0x0000000000000003 (PLTGOT) 0x19ac638
0x0000000000000002 (PLTRELSZ) 10056 (bytes)
0x0000000000000014 (PLTREL) RELA
0x0000000000000017 (JMPREL) 0x1ee840
0x0000000000000007 (RELA) 0xb858
0x0000000000000008 (RELASZ) 1978344 (bytes)
0x0000000000000009 (RELAENT) 24 (bytes)
0x0000000000000018 (BIND_NOW)
0x000000006ffffffb (FLAGS_1) Flags: NOW ORIGIN PIE
0x000000006ffffffe (VERNEED) 0xb7b8
0x000000006fffffff (VERNEEDNUM) 5
0x000000006ffffff0 (VERSYM) 0xb43e
0x000000006ffffff9 (RELACOUNT) 82152
0x0000000000000000 (NULL) 0x0
languages.rust.channel = "stable";
This line breaks it.
Upstream fix: https://github.com/nix-community/fenix/pull/147
Describe the bug Hey :wave: currently, rust-analyzer will crash with the following when neovim attempts to attach to it
To reproduce
Current flake
Then, load the shell and attempt to run neovim with the rust-analyzer lsp attached via lsp config.
Make sure to include full logs and what you expected to happen.
Version
Paste the output of
$ devenv version
here.devenv: 1.0.4