From: Nicholas von Klitzing <nicholas@nvk.pm>
To: 52107@debbugs.gnu.org
Subject: bug#52107: rust-analyzer shipped broken without rust-src
Date: Thu, 25 Nov 2021 14:53:22 +0000 [thread overview]
Message-ID: <nMycyAkK9vDlP_F9nXTj8gNCytp8oNnd9jrH-eVQVEqio9_QFXsMapzpREfjGpaXN_1XM4fv9ZGwbhbc4FbGehxqotDWXfVRvTdhh3Aeh7o=@nvk.pm> (raw)
Hello Guix,
The rust-analyzer package depends on having a local copy of the rust compiler (rustc) source code available in order for it to function.
Currently, neither the rust-analyzer nor the rust package include rust-src, which means rust-analyzer is broken by default.
On non-guix systems the rustc source code is usually installed using `rustup component add rust-src`.
The workaround I'm currently using is to run `guix build --source rust` followed by adding `export RUST_SRC_PATH=/home/$user/rustc-$version-src/library` to ~/.profile following every rust upgrade.
rust-analyzer is a crucial tool for many rust developers, so this experience should definitely be improved or at least documented.
I am not very familiar with guix and therefore cannot recommend a good way to solve this.
What would possible solutions to this issue be?
Kind regards,
Nicholas
next reply other threads:[~2021-11-25 21:56 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-25 14:53 Nicholas von Klitzing [this message]
2021-11-26 9:42 ` bug#52107: An Idea Nicholas von Klitzing
2021-11-26 14:21 ` Maxime Devos
2021-11-26 17:40 ` Nicholas von Klitzing
2021-11-26 18:07 ` Maxime Devos
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='nMycyAkK9vDlP_F9nXTj8gNCytp8oNnd9jrH-eVQVEqio9_QFXsMapzpREfjGpaXN_1XM4fv9ZGwbhbc4FbGehxqotDWXfVRvTdhh3Aeh7o=@nvk.pm' \
--to=nicholas@nvk.pm \
--cc=52107@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).