all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#52107: rust-analyzer shipped broken without rust-src
@ 2021-11-25 14:53 Nicholas von Klitzing
  2021-11-26  9:42 ` bug#52107: An Idea Nicholas von Klitzing
  0 siblings, 1 reply; 5+ messages in thread
From: Nicholas von Klitzing @ 2021-11-25 14:53 UTC (permalink / raw)
  To: 52107

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




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-11-26 18:08 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-25 14:53 bug#52107: rust-analyzer shipped broken without rust-src Nicholas von Klitzing
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

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.