Comments (4)
I've found the cause. In case whoever else meet this problem:
This is an intentional design on the pacman package rustup
. It's not that rust-analyzer
isn't being proxied, but proxied at /usr/lib/rustup/bin/rust-analyzer
. It was to avoid conflict between rust-analyzer
installed by rustup and one by pacman, since it is also an available pacman package.
To solve this problem, you can just add /usr/lib/rustup/bin/
in your $PATH
variable.
from rustup.
@Cavig01 It seems that I cannot reproduce this issue on my ARM64 Mac:
> docker run --rm -it ubuntu
root@5a5f7c31c016:/# uname -a
Linux 5a5f7c31c016 6.8.4-200.fc39.aarch64 #1 SMP PREEMPT_DYNAMIC Thu Apr 4 21:00:27 UTC 2024 aarch64 aarch64 aarch64 GNU/Linux
[installing `curl`...]
root@5a5f7c31c016:/# curl -sSf https://raw.githubusercontent.com/rust-lang/rustup/master/rustup-init.sh | sh
info: downloading installer
[...]
info: default toolchain set to 'stable-aarch64-unknown-linux-gnu'
stable-aarch64-unknown-linux-gnu installed - rustc 1.77.2 (25ef9e3d8 2024-04-09)
[...]
root@5a5f7c31c016:/# . ~/.cargo/env
root@5a5f7c31c016:/# rustup component add rust-analyzer
info: downloading component 'rust-analyzer'
info: installing component 'rust-analyzer'
root@5a5f7c31c016:/# which rust-analyzer
/root/.cargo/bin/rust-analyzer
root@5a5f7c31c016:/# rust-analyzer --version
rust-analyzer 1.77.2 (25ef9e3d 2024-04-09)
Did you do anything special?
from rustup.
@rami3l I've just tried. It appears that it was because I installed rustup by pacman. Rustup installed by rustup-init.sh
doesn't have the problem.
from rustup.
@Cavig01 Thanks for the investigation! This could be an interesting issue to be reported to the package maintainers then.
Since there's really not much we can do on our side, I'm closing this issue. Please feel free to contact us if you have other questions!
from rustup.
Related Issues (20)
- Consider getting rid of `toolchain_sort()`
- Confusing error message `toolchain "stable-x86_64-unknown-linux-gnu" is not installable` HOT 9
- Use `LevelFilter::Warn` for `stderr` if `-q` is present in `rustup-init`
- rustup segfaults when running in a linux/amd64 docker container on macOS M3 host HOT 6
- Improve handling of `clap` errors
- FreeBSD CI failure possibly caused by `rustls-platform-verifier` HOT 6
- rustup toolchain list --verbose should list why each toolchain was installed HOT 5
- Dependabot lockfile updates are gone
- Meta: Ship builds from the `master` branch as well
- Tracking: Workspace trust & safe file discovery
- Windows: "called `Option::unwrap()` on a `None` value" HOT 18
- Tracking: Ensure the integrity of toolchains, handle concurrent reads/writes HOT 2
- Proposal: `rustup toolchain verify`
- `rustc --version` should not trigger/initiate toolchain updates HOT 3
- UI error - contradictory output when toolchain not found HOT 2
- Update `taplo` to v0.9
- Toolchain file not properly resolving Rust 1.79 HOT 4
- rustup update in traditional package installed operating systems HOT 2
- user-guide/environment-variables, dev-guide/tips-and-tricks, ... — Undocumented environment variables?.. HOT 5
- Rust installation freezes on Raspberry PI (worked in 1.26) HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rustup.