From d32e15cae628423f8b5ebda67daf6bef9efddd31 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Thu, 13 Jun 2019 21:17:46 +0300 Subject: [PATCH] Temp fix for slow onEnter issue The issue was windows specific -- cancellation caused collection of bracktraces at some point, and that was slow on windows. The proper fix here is to make sure that we don't collect bracktraces unnecessary (which we currently do due to failure), but, as a temporary fix, let's just not force their collection in the first place! --- crates/ra_lsp_server/src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/ra_lsp_server/src/main.rs b/crates/ra_lsp_server/src/main.rs index a0df32dde61..3c3e8b5b0ef 100644 --- a/crates/ra_lsp_server/src/main.rs +++ b/crates/ra_lsp_server/src/main.rs @@ -6,7 +6,8 @@ use ra_prof; fn main() -> Result<()> { - std::env::set_var("RUST_BACKTRACE", "short"); + // re-enable and verify on windows after #1400 + // std::env::set_var("RUST_BACKTRACE", "short"); let logger = Logger::with_env_or_str("error").duplicate_to_stderr(Duplicate::All); match std::env::var("RA_LOG_DIR") { Ok(ref v) if v == "1" => logger.log_to_file().directory("log").start()?,