rust-lang / rust-lang/rust-analyzer

patched rust-analyzer for NixOS doesn't work: "symbol lookup error"

Open
#12,410 3 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

A-vscode C-support
Dominant language
Rust
Stars
16.9k
Forks
2.2k
Avg merge
1d 12h
Merged PRs (30d)
72

Description

rust-analyzer version: not exactly sure because:

/home/paulg/.config/Code/User/globalStorage/rust-lang.rust-analyzer/rust-analyzer: symbol lookup error: /usr/lib/libc.so.6: undefined symbol: _dl_audit_symbind_alt, version GLIBC_PRIVATE

but this is the one automatically installed and patched by the extension at 0.3.1066

rustc version: rustc 1.63.0-nightly (ebbcbfc23 2022-05-27)

The issue persist with extension at 0.4.1073

I'm on NixOS with channel nixos-22.05 using vscode-fhs and the extension from the vscode store, not nixos.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the rust-analyzer troubleshooting guide and reproduce the failure using the extension-installed binary at /home/paulg/.config/Code/User/globalStorage/rust-lang.rust-analyzer/rust-analyzer on NixOS with vscode-fhs. Compare the reported 0.3.1066 and 0.4.1073 behavior and investigate the libc.so.6 symbol lookup error. Done means the automatically installed extension binary starts successfully in this environment.

Written by the indexing model from the issue text.

Assessment

Tech stack
nixos, rust, vscode
Domain
devtools, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.