mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-26 13:03:31 +00:00
Add troubleshooting secion
This commit is contained in:
parent
1d6024e460
commit
681c6eeeeb
1 changed files with 10 additions and 0 deletions
|
@ -98,6 +98,16 @@ You'll need Cargo, nodejs and npm for this.
|
||||||
|
|
||||||
Note that installing via `xtask install` does not work for VS Code Remote, instead you'll need to install the `.vsix` manually.
|
Note that installing via `xtask install` does not work for VS Code Remote, instead you'll need to install the `.vsix` manually.
|
||||||
|
|
||||||
|
==== Troubleshooting
|
||||||
|
|
||||||
|
Here are some useful self-diagnostic commands:
|
||||||
|
|
||||||
|
* **Rust Analyzer: Show RA Version** shows the version of `rust-analyzer` binary
|
||||||
|
* **Rust Analyzer: Status** prints some statistics about the server, like the few latest LSP requests
|
||||||
|
* To enable server-side logging, run with `env RUST_LOG=info` and see `Output > Rust Analyzer Language Server` in VS Code's panel.
|
||||||
|
* To log all LSP requests, add `"rust-analyzer.trace.server": "verbose"` to the settings and look for `Server Trace` in the panel.
|
||||||
|
* To enable client-side logging, add `"rust-analyzer.trace.extension": true` to the settings and open the `Console` tab of VS Code developer tools.
|
||||||
|
|
||||||
=== Language Server Binary
|
=== Language Server Binary
|
||||||
|
|
||||||
Other editors generally require `rust-analyzer` binary to be in `$PATH`.
|
Other editors generally require `rust-analyzer` binary to be in `$PATH`.
|
||||||
|
|
Loading…
Reference in a new issue