From 1cd40a408ae7fca3d286667360e46c530034c3ff Mon Sep 17 00:00:00 2001 From: Lukas Wirth Date: Fri, 17 Dec 2021 18:07:01 +0100 Subject: [PATCH 1/2] minor: clarify RA_LOG env var troubleshooting --- docs/user/manual.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/user/manual.adoc b/docs/user/manual.adoc index 4fbe2379c3..c0d1285148 100644 --- a/docs/user/manual.adoc +++ b/docs/user/manual.adoc @@ -445,7 +445,7 @@ If the date is more than a week ago, it's better to update rust-analyzer version The next thing to check would be panic messages in rust-analyzer's log. Log messages are printed to stderr, in VS Code you can see then in the `Output > Rust Analyzer Language Server` tab of the panel. -To see more logs, set the `RA_LOG=info` environment variable. +To see more logs, set the `RA_LOG=info` environment variable, this can be done either by setting the environment variable manually or by using `rust-analyzer.rust-analyzer.server.extraEnv`, note that both of these approaches require the server to be restarted. To fully capture LSP messages between the editor and the server, set `"rust-analyzer.trace.server": "verbose"` config and check `Output > Rust Analyzer Language Server Trace`. From dc9257682c7fc2f663c0d49d4916788bc4a56ee8 Mon Sep 17 00:00:00 2001 From: Lukas Wirth Date: Sat, 18 Dec 2021 21:02:03 +0100 Subject: [PATCH 2/2] Fix typo --- docs/user/manual.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/user/manual.adoc b/docs/user/manual.adoc index c0d1285148..0be1959a5e 100644 --- a/docs/user/manual.adoc +++ b/docs/user/manual.adoc @@ -445,7 +445,7 @@ If the date is more than a week ago, it's better to update rust-analyzer version The next thing to check would be panic messages in rust-analyzer's log. Log messages are printed to stderr, in VS Code you can see then in the `Output > Rust Analyzer Language Server` tab of the panel. -To see more logs, set the `RA_LOG=info` environment variable, this can be done either by setting the environment variable manually or by using `rust-analyzer.rust-analyzer.server.extraEnv`, note that both of these approaches require the server to be restarted. +To see more logs, set the `RA_LOG=info` environment variable, this can be done either by setting the environment variable manually or by using `rust-analyzer.server.extraEnv`, note that both of these approaches require the server to be restarted. To fully capture LSP messages between the editor and the server, set `"rust-analyzer.trace.server": "verbose"` config and check `Output > Rust Analyzer Language Server Trace`.