FS#79373 - [rustup] missing rust-analyzer wrapper

Attached to Project: Arch Linux
Opened by Aria (tcmal) - Monday, 14 August 2023, 13:48 GMT
Last edited by Toolybird (Toolybird) - Tuesday, 15 August 2023, 20:32 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Sven-Hendrik Haase (Svenstaro)
Orhun Parmaksız (orhun)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

When using the rustup package, the `rust-analyzer` wrapper/symlink is not created, meaning that installing rust-analyzer through rustup (`rustup component add rust-analyzer`) will not allow it to be run normally.

This can be worked around by running 'sudo ln -s `which rustup` /usr/bin/rust-analyzer'.

Additional info:
* `extra/rustup 1.26.0-3`

Steps to reproduce:
* `rustup component add rust-analyzer`
* `rust-analyzer` -> command not found
This task depends upon

Closed by  Toolybird (Toolybird)
Tuesday, 15 August 2023, 20:32 GMT
Reason for closing:  Duplicate
Additional comments about closing:   FS#78382 
Comment by Toolybird (Toolybird) - Monday, 14 August 2023, 20:12 GMT
This appears to be on purpose. Please see [1]. i.e. just install the "rust-analyzer" pkg?

[1] https://gitlab.archlinux.org/archlinux/packaging/packages/rustup/-/commit/a2725a1443a33f563ef53f251ab6197a0daa2643
Comment by Aria (tcmal) - Monday, 14 August 2023, 21:10 GMT
rust-analyzer generally needs to be the same version as the compiler, so managing it separately causes problems with nightly. Since its now an option, rustup is now usually the best method.

This article outlines further: https://fasterthanli.me/articles/proc-macro-support-in-rust-analyzer-for-nightly-rustc-versions
Comment by Toolybird (Toolybird) - Monday, 14 August 2023, 21:28 GMT
The steps you are taking are mentioned in the wiki [1] so yeah, if it doesn't quite work as expected...

[1] https://wiki.archlinux.org/title/Rust#rust-analyzer
Comment by Daniel M. Capella (polyzen) - Monday, 14 August 2023, 22:33 GMT
Seems to be a duplicate of  FS#78382 . Try logging out and back in.
Comment by Sven-Hendrik Haase (Svenstaro) - Monday, 14 August 2023, 22:46 GMT
I'm not really sure what the issue is here. Our packaging allows users to use both rust-analyzer versions and it gives users the flexibility to choose the version they prefer.
Comment by Orhun Parmaksız (orhun) - Tuesday, 15 August 2023, 08:29 GMT
Sounds like "not a bug".
Comment by Aria (tcmal) - Tuesday, 15 August 2023, 14:12 GMT
Wasn't aware of needing to log back in, so yes this isn't a bug. Will add a note on the wiki for others.

Loading...