From 427f634de3fe6a746adf5de41eeb290c5ac321ef Mon Sep 17 00:00:00 2001 From: Nikolai Morin Date: Tue, 21 Apr 2020 11:17:12 +0200 Subject: Move the PATH issue up to the non-editor specific section --- docs/user/readme.adoc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'docs/user') diff --git a/docs/user/readme.adoc b/docs/user/readme.adoc index 5f03f068a..77cdd5e1c 100644 --- a/docs/user/readme.adoc +++ b/docs/user/readme.adoc @@ -120,6 +120,8 @@ Alternatively, you can install it from source using the following command: $ cargo xtask install --server ---- +If your editor can't find the binary even though the binary is on your `$PATH`, the likely explanation is that it doesn't see the same `$PATH` as the shell, see https://github.com/rust-analyzer/rust-analyzer/issues/1811[this issue]. On Unix, running the editor from a shell or changing the `.desktop` file to set the environment should help. + ==== Arch Linux The `rust-analyzer` binary can be installed from AUR (Arch User Repository): @@ -196,7 +198,7 @@ Finally, with your Rust project open, in the command palette, run `LSP: Enable L If it worked, you should see "rust-analzyer, Line X, Column Y" on the left side of the bottom bar, and after waiting a bit, functionality like tooltips on hovering over variables should become available. -If you get an error saying `No such file or directory: 'rust-analyzer'` even though the binary is on your `$PATH`, the likely explanation is that Sublime doesn't see the same `$PATH` as the shell, see https://github.com/rust-analyzer/rust-analyzer/issues/1811[this issue]. On Unix, running the editor from a shell or changing the `.desktop` file to set the environment should help. +If you get an error saying `No such file or directory: 'rust-analyzer'`, see the <>. == Usage -- cgit v1.2.3