Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connection got disposed #2949

Closed
w93163red opened this issue Jan 29, 2020 · 6 comments
Closed

Connection got disposed #2949

w93163red opened this issue Jan 29, 2020 · 6 comments

Comments

@w93163red
Copy link

Hi all,

I just pulled out the latest release, but I got this error:

thread 'main' panicked at 'no entry found for key', src/libcore/option.rs:1188:5
stack backtrace:
   0: <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt
   1: core::fmt::write
   2: std::io::Write::write_fmt
   3: std::panicking::default_hook::{{closure}}
   4: std::panicking::default_hook
   5: std::panicking::rust_panic_with_hook
   6: rust_begin_unwind
   7: core::panicking::panic_fmt
   8: core::option::expect_failed
   9: ra_project_model::cargo_workspace::CargoWorkspace::from_cargo_metadata
  10: ra_project_model::ProjectWorkspace::discover_with_sysroot
  11: ra_lsp_server::main_loop::main_loop
  12: ra_lsp_server::main
  13: std::rt::lang_start::{{closure}}
  14: std::panicking::try::do_call
  15: __rust_maybe_catch_panic
  16: std::rt::lang_start_internal
  17: main
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
[Info  - 6:56:24 PM] Connection to server got closed. Server will restart.
thread 'main' panicked at 'no entry found for key', src/libcore/option.rs:1188:5
stack backtrace:
   0: <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt
   1: core::fmt::write
   2: std::io::Write::write_fmt
   3: std::panicking::default_hook::{{closure}}
   4: std::panicking::default_hook
   5: std::panicking::rust_panic_with_hook
   6: rust_begin_unwind
   7: core::panicking::panic_fmt
   8: core::option::expect_failed
   9: ra_project_model::cargo_workspace::CargoWorkspace::from_cargo_metadata
  10: ra_project_model::ProjectWorkspace::discover_with_sysroot
  11: ra_lsp_server::main_loop::main_loop
  12: ra_lsp_server::main
  13: std::rt::lang_start::{{closure}}
  14: std::panicking::try::do_call
  15: __rust_maybe_catch_panic
  16: std::rt::lang_start_internal
  17: main
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
[Info  - 6:56:26 PM] Connection to server got closed. Server will restart.
thread 'main' panicked at 'no entry found for key', src/libcore/option.rs:1188:5
stack backtrace:
   0: <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt
   1: core::fmt::write
   2: std::io::Write::write_fmt
   3: std::panicking::default_hook::{{closure}}
   4: std::panicking::default_hook
   5: std::panicking::rust_panic_with_hook
   6: rust_begin_unwind
   7: core::panicking::panic_fmt
   8: core::option::expect_failed
   9: ra_project_model::cargo_workspace::CargoWorkspace::from_cargo_metadata
  10: ra_project_model::ProjectWorkspace::discover_with_sysroot
  11: ra_lsp_server::main_loop::main_loop
  12: ra_lsp_server::main
  13: std::rt::lang_start::{{closure}}
  14: std::panicking::try::do_call
  15: __rust_maybe_catch_panic
  16: std::rt::lang_start_internal
  17: main
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
thread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: "SendError(..)"', src/libcore/result.rs:1188[Info  - 6:56:28 PM] Connection to server got closed. Server will restart.
[Error - 6:56:28 PM] Request textDocument/codeAction failed.
Error: Connection got disposed.
	at Object.dispose (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:3915:25)
	at Object.dispose (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:8492:35)
	at LanguageClient.handleConnectionClosed (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:10727:42)
	at LanguageClient.handleConnectionClosed (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:11934:15)
	at closeHandler (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:10714:18)
	at CallbackList.invoke (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:2030:39)
	at Emitter.fire (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:2089:36)
	at closeHandler (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:3251:26)
	at CallbackList.invoke (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:2030:39)
	at Emitter.fire (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:2089:36)
	at StreamMessageReader.fireClose (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:2214:27)
	at Socket.<anonymous> (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:2254:46)
	at Socket.emit (events.js:205:15)
	at Pipe.<anonymous> (net.js:586:12)
[Error - 6:56:28 PM] Request textDocument/documentSymbol failed.
Error: Connection got disposed.
	at Object.dispose (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:3915:25)
	at Object.dispose (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:8492:35)
	at LanguageClient.handleConnectionClosed (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:10727:42)
	at LanguageClient.handleConnectionClosed (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:11934:15)
	at closeHandler (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:10714:18)
	at CallbackList.invoke (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:2030:39)
	at Emitter.fire (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:2089:36)
	at closeHandler (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:3251:26)
	at CallbackList.invoke (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:2030:39)
	at Emitter.fire (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:2089:36)
	at StreamMessageReader.fireClose (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:2214:27)
	at Socket.<anonymous> (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:2254:46)
	at Socket.emit (events.js:205:15)
	at Pipe.<anonymous> (net.js:586:12)
[Error - 6:56:28 PM] Request textDocument/documentHighlight failed.
Error: Connection got disposed.
	at Object.dispose (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:3915:25)
	at Object.dispose (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:8492:35)
	at LanguageClient.handleConnectionClosed (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:10727:42)
	at LanguageClient.handleConnectionClosed (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:11934:15)
	at closeHandler (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:10714:18)
	at CallbackList.invoke (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:2030:39)
	at Emitter.fire (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:2089:36)
	at closeHandler (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:3251:26)
	at CallbackList.invoke (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:2030:39)
	at Emitter.fire (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:2089:36)
	at StreamMessageReader.fireClose (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:2214:27)
	at Socket.<anonymous> (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:2254:46)
	at Socket.emit (events.js:205:15)
	at Pipe.<anonymous> (net.js:586:12)
[Error - 6:56:28 PM] Request textDocument/documentSymbol failed.
Error: Connection got disposed.
	at Object.dispose (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:3915:25)
	at Object.dispose (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:8492:35)
	at LanguageClient.handleConnectionClosed (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:10727:42)
	at LanguageClient.handleConnectionClosed (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:11934:15)
	at closeHandler (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:10714:18)
	at CallbackList.invoke (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:2030:39)
	at Emitter.fire (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:2089:36)
	at closeHandler (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:3251:26)
	at CallbackList.invoke (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:2030:39)
	at Emitter.fire (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:2089:36)
	at StreamMessageReader.fireClose (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:2214:27)
	at Socket.<anonymous> (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:2254:46)
	at Socket.emit (events.js:205:15)
	at Pipe.<anonymous> (net.js:586:12)
[Error - 6:56:28 PM] Request textDocument/codeAction failed.
Error: Connection got disposed.
	at Object.dispose (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:3915:25)
	at Object.dispose (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:8492:35)
	at LanguageClient.handleConnectionClosed (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:10727:42)
	at LanguageClient.handleConnectionClosed (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:11934:15)
	at closeHandler (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:10714:18)
	at CallbackList.invoke (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:2030:39)
	at Emitter.fire (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:2089:36)
	at closeHandler (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:3251:26)
	at CallbackList.invoke (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:2030:39)
	at Emitter.fire (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:2089:36)
	at StreamMessageReader.fireClose (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:2214:27)
	at Socket.<anonymous> (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:2254:46)
	at Socket.emit (events.js:205:15)
	at Pipe.<anonymous> (net.js:586:12)
[Error - 6:56:28 PM] Request textDocument/foldingRange failed.
Error: Connection got disposed.
	at Object.dispose (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:3915:25)
	at Object.dispose (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:8492:35)
	at LanguageClient.handleConnectionClosed (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:10727:42)
	at LanguageClient.handleConnectionClosed (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:11934:15)
	at closeHandler (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:10714:18)
	at CallbackList.invoke (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:2030:39)
	at Emitter.fire (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:2089:36)
	at closeHandler (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:3251:26)
	at CallbackList.invoke (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:2030:39)
	at Emitter.fire (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:2089:36)
	at StreamMessageReader.fireClose (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:2214:27)
	at Socket.<anonymous> (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:2254:46)
	at Socket.emit (events.js:205:15)
	at Pipe.<anonymous> (net.js:586:12)
thread 'main' panicked at 'no entry found for key', src/libcore/option.rs:1188:5
stack backtrace:
   0: <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt
   1: core::fmt::write
   2: std::io::Write::write_fmt
   3: std::panicking::default_hook::{{closure}}
   4: std::panicking::default_hook
   5: std::panicking::rust_panic_with_hook
   6: rust_begin_unwind
   7: core::panicking::panic_fmt
   8: core::option::expect_failed
   9: ra_project_model::cargo_workspace::CargoWorkspace::from_cargo_metadata
  10: ra_project_model::ProjectWorkspace::discover_with_sysroot
  11: ra_lsp_server::main_loop::main_loop
  12: ra_lsp_server::main
  13: std::rt::lang_start::{{closure}}
  14: std::panicking::try::do_call
  15: __rust_maybe_catch_panic
  16: std::rt::lang_start_internal
  17: main
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
thread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: "SendError(..)"', src/libcore/result.rs:1188:[Info  - 6:56:30 PM] Connection to server got closed. Server will restart.
[Error - 6:56:30 PM] Request textDocument/documentSymbol failed.
Error: Connection got disposed.
	at Object.dispose (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:3915:25)
	at Object.dispose (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:8492:35)
	at LanguageClient.handleConnectionClosed (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:10727:42)
	at LanguageClient.handleConnectionClosed (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:11934:15)
	at closeHandler (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:10714:18)
	at CallbackList.invoke (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:2030:39)
	at Emitter.fire (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:2089:36)
	at closeHandler (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:3251:26)
	at CallbackList.invoke (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:2030:39)
	at Emitter.fire (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:2089:36)
	at StreamMessageWriter.fireClose (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:2372:27)
	at Socket.<anonymous> (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:2391:46)
	at Socket.emit (events.js:200:13)
	at Pipe.<anonymous> (net.js:586:12)
[Error - 6:56:30 PM] Request textDocument/codeAction failed.
Error: Connection got disposed.
	at Object.dispose (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:3915:25)
	at Object.dispose (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:8492:35)
	at LanguageClient.handleConnectionClosed (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:10727:42)
	at LanguageClient.handleConnectionClosed (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:11934:15)
	at closeHandler (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:10714:18)
	at CallbackList.invoke (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:2030:39)
	at Emitter.fire (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:2089:36)
	at closeHandler (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:3251:26)
	at CallbackList.invoke (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:2030:39)
	at Emitter.fire (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:2089:36)
	at StreamMessageWriter.fireClose (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:2372:27)
	at Socket.<anonymous> (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:2391:46)
	at Socket.emit (events.js:200:13)
	at Pipe.<anonymous> (net.js:586:12)
[Error - 6:56:30 PM] Request textDocument/foldingRange failed.
Error: Connection got disposed.
	at Object.dispose (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:3915:25)
	at Object.dispose (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:8492:35)
	at LanguageClient.handleConnectionClosed (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:10727:42)
	at LanguageClient.handleConnectionClosed (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:11934:15)
	at closeHandler (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:10714:18)
	at CallbackList.invoke (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:2030:39)
	at Emitter.fire (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:2089:36)
	at closeHandler (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:3251:26)
	at CallbackList.invoke (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:2030:39)
	at Emitter.fire (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:2089:36)
	at StreamMessageWriter.fireClose (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:2372:27)
	at Socket.<anonymous> (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:2391:46)
	at Socket.emit (events.js:200:13)
	at Pipe.<anonymous> (net.js:586:12)
[Error - 6:56:30 PM] Request textDocument/codeLens failed.
Error: Connection got disposed.
	at Object.dispose (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:3915:25)
	at Object.dispose (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:8492:35)
	at LanguageClient.handleConnectionClosed (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:10727:42)
	at LanguageClient.handleConnectionClosed (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:11934:15)
	at closeHandler (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:10714:18)
	at CallbackList.invoke (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:2030:39)
	at Emitter.fire (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:2089:36)
	at closeHandler (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:3251:26)
	at CallbackList.invoke (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:2030:39)
	at Emitter.fire (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:2089:36)
	at StreamMessageWriter.fireClose (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:2372:27)
	at Socket.<anonymous> (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:2391:46)
	at Socket.emit (events.js:200:13)
	at Pipe.<anonymous> (net.js:586:12)
[Error - 6:56:30 PM] Request textDocument/hover failed.
Error: Connection got disposed.
	at Object.dispose (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:3915:25)
	at Object.dispose (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:8492:35)
	at LanguageClient.handleConnectionClosed (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:10727:42)
	at LanguageClient.handleConnectionClosed (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:11934:15)
	at closeHandler (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:10714:18)
	at CallbackList.invoke (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:2030:39)
	at Emitter.fire (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:2089:36)
	at closeHandler (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:3251:26)
	at CallbackList.invoke (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:2030:39)
	at Emitter.fire (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:2089:36)
	at StreamMessageWriter.fireClose (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:2372:27)
	at Socket.<anonymous> (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:2391:46)
	at Socket.emit (events.js:200:13)
	at Pipe.<anonymous> (net.js:586:12)
[Error - 6:56:30 PM] Request textDocument/hover failed.
Error: Connection got disposed.
	at Object.dispose (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:3915:25)
	at Object.dispose (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:8492:35)
	at LanguageClient.handleConnectionClosed (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:10727:42)
	at LanguageClient.handleConnectionClosed (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:11934:15)
	at closeHandler (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:10714:18)
	at CallbackList.invoke (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:2030:39)
	at Emitter.fire (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:2089:36)
	at closeHandler (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:3251:26)
	at CallbackList.invoke (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:2030:39)
	at Emitter.fire (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:2089:36)
	at StreamMessageWriter.fireClose (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:2372:27)
	at Socket.<anonymous> (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:2391:46)
	at Socket.emit (events.js:200:13)
	at Pipe.<anonymous> (net.js:586:12)
thread 'main' panicked at 'no entry found for key', src/libcore/option.rs:1188:5
stack backtrace:
   0: <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt
   1: core::fmt::write
   2: std::io::Write::write_fmt
   3: std::panicking::default_hook::{{closure}}
   4: std::panicking::default_hook
   5: std::panicking::rust_panic_with_hook
   6: rust_begin_unwind
   7: core::panicking::panic_fmt
   8: core::option::expect_failed
   9: ra_project_model::cargo_workspace::CargoWorkspace::from_cargo_metadata
  10: ra_project_model::ProjectWorkspace::discover_with_sysroot
  11: ra_lsp_server::main_loop::main_loop
  12: ra_lsp_server::main
  13: std::rt::lang_start::{{closure}}
  14: std::panicking::try::do_call
  15: __rust_maybe_catch_panic
  16: std::rt::lang_start_internal
  17: main
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
thread '[Error - 6:56:32 PM] Connection to server got closed. Server will not be restarted.
[Error - 6:56:32 PM] Request textDocument/documentSymbol failed.
Error: Connection got disposed.
	at Object.dispose (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:3915:25)
	at Object.dispose (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:8492:35)
	at LanguageClient.handleConnectionClosed (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:10727:42)
	at LanguageClient.handleConnectionClosed (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:11934:15)
	at closeHandler (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:10714:18)
	at CallbackList.invoke (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:2030:39)
	at Emitter.fire (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:2089:36)
	at closeHandler (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:3251:26)
	at CallbackList.invoke (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:2030:39)
	at Emitter.fire (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:2089:36)
	at StreamMessageReader.fireClose (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:2214:27)
	at Socket.<anonymous> (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:2254:46)
	at Socket.emit (events.js:205:15)
	at Pipe.<anonymous> (net.js:586:12)
[Error - 6:56:32 PM] Request textDocument/codeAction failed.
Error: Connection got disposed.
	at Object.dispose (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:3915:25)
	at Object.dispose (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:8492:35)
	at LanguageClient.handleConnectionClosed (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:10727:42)
	at LanguageClient.handleConnectionClosed (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:11934:15)
	at closeHandler (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:10714:18)
	at CallbackList.invoke (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:2030:39)
	at Emitter.fire (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:2089:36)
	at closeHandler (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:3251:26)
	at CallbackList.invoke (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:2030:39)
	at Emitter.fire (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:2089:36)
	at StreamMessageReader.fireClose (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:2214:27)
	at Socket.<anonymous> (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:2254:46)
	at Socket.emit (events.js:205:15)
	at Pipe.<anonymous> (net.js:586:12)
[Error - 6:56:32 PM] Request textDocument/foldingRange failed.
Error: Connection got disposed.
	at Object.dispose (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:3915:25)
	at Object.dispose (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:8492:35)
	at LanguageClient.handleConnectionClosed (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:10727:42)
	at LanguageClient.handleConnectionClosed (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:11934:15)
	at closeHandler (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:10714:18)
	at CallbackList.invoke (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:2030:39)
	at Emitter.fire (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:2089:36)
	at closeHandler (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:3251:26)
	at CallbackList.invoke (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:2030:39)
	at Emitter.fire (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:2089:36)
	at StreamMessageReader.fireClose (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:2214:27)
	at Socket.<anonymous> (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:2254:46)
	at Socket.emit (events.js:205:15)
	at Pipe.<anonymous> (net.js:586:12)
[Error - 6:56:32 PM] Request textDocument/codeLens failed.
Error: Connection got disposed.
	at Object.dispose (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:3915:25)
	at Object.dispose (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:8492:35)
	at LanguageClient.handleConnectionClosed (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:10727:42)
	at LanguageClient.handleConnectionClosed (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:11934:15)
	at closeHandler (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:10714:18)
	at CallbackList.invoke (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:2030:39)
	at Emitter.fire (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:2089:36)
	at closeHandler (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:3251:26)
	at CallbackList.invoke (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:2030:39)
	at Emitter.fire (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:2089:36)
	at StreamMessageReader.fireClose (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:2214:27)
	at Socket.<anonymous> (/Users/xxx/.vscode/extensions/matklad.rust-analyzer-0.1.0/out/main.js:2254:46)
	at Socket.emit (events.js:205:15)
	at Pipe.<anonymous> (net.js:586:12)

May I know how I can resolve this issue?

@bjorn3
Copy link
Member

bjorn3 commented Jan 30, 2020

Could you please post your Cargo.toml and the output of cargo metadata?

@w93163red
Copy link
Author

Could you please post your Cargo.toml and the output of cargo metadata?

Thanks for the help! It is a commercial project and the metadata is huge. May I know which specific data is required?

@edwin0cheng
Copy link
Member

edwin0cheng commented Jan 30, 2020

Maybe duplicated to #2767, and see rust-lang/cargo#7841

Just curious , do you have a patch section in your cargo.toml and look like this one ?

@w93163red
Copy link
Author

Maybe duplicated to #2767, and see rust-lang/cargo#7841

Just curious , do you have a patch section in your cargo.toml and look like this one ?

I think we are working on a same project... just realized that :)

@edwin0cheng
Copy link
Member

edwin0cheng commented Jan 30, 2020

Duplicate of #2767

@edwin0cheng edwin0cheng marked this as a duplicate of #1831 Jan 30, 2020
@edwin0cheng edwin0cheng marked this as a duplicate of #2767 Jan 30, 2020
@matklad
Copy link
Member

matklad commented Jan 30, 2020 via email

@edwin0cheng edwin0cheng marked this as not a duplicate of #1831 Jan 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants