You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`"Donwload latest language server"` command for VSCode and automatic updates detection is currently WIP.
60
+
`"Download latest language server"` command for VSCode and automatic updates detection is currently WIP.
61
61
62
62
63
63
### Installation from sources
@@ -71,6 +71,16 @@ $ cd rust-analyzer
71
71
$ cargo xtask install
72
72
```
73
73
74
+
After that you need to amend your `settings.json` file to explicitly specify the
75
+
path to `ra_lsp_server` that you've just built.
76
+
```json
77
+
{
78
+
"rust-analyzer.raLspServerPath": "ra_lsp_server"
79
+
}
80
+
```
81
+
This should work on all platforms, otherwise if installed `ra_lsp_server` is not available through your `$PATH` then see how to configure it [here](#setting-up-the-PATH-variable).
82
+
83
+
74
84
The automatic installation is expected to *just work* for common cases, if it
75
85
doesn't, report bugs!
76
86
@@ -127,7 +137,7 @@ host.
127
137
As an example, [Pale Fire](https://github.com/matklad/pale-fire/) color scheme tweaks rust colors.
128
138
*`rust-analyzer.enableEnhancedTyping`: by default, rust-analyzer intercepts the
129
139
`Enter` key to make it easier to continue comments. Note that it may conflict with VIM emulation plugin.
130
-
*`rust-analyzer.raLspServerPath`: path to `ra_lsp_server` executable
140
+
*`rust-analyzer.raLspServerPath`: path to `ra_lsp_server` executable, when absent or `null` defaults to prebuilt binary path
131
141
*`rust-analyzer.enableCargoWatchOnStartup`: prompt to install & enable `cargo
132
142
watch` for live error highlighting (note, this **does not** use rust-analyzer)
133
143
*`rust-analyzer.excludeGlobs`: a list of glob-patterns for exclusion (see globset [docs](https://docs.rs/globset) for syntax).
@@ -232,7 +242,8 @@ Installation:
232
242
233
243
* You can now invoke the command palette and type LSP enable to locally/globally enable the rust-analyzer LSP (type LSP enable, then choose either locally or globally, then select rust-analyzer)
234
244
235
-
### Setting up the `PATH` variable
245
+
246
+
### Setting up the `PATH` variable <!-- Update links to this header when changing it! -->
236
247
237
248
On Unix systems, `rustup` adds `~/.cargo/bin` to `PATH` by modifying the shell's
238
249
startup file. Depending on your configuration, your Desktop Environment might not
0 commit comments