Closed
Description
tldr: When I load my project Rust Analyzer starts flooding the console with messages like these:
[Error - 5:18:10 PM] Request textDocument/hover failed.
Message: unknown file: /home/korvin/work/Parity/substrate-node-template/runtime/src/utxo.rs
stack backtrace:
0: failure::backtrace::internal::InternalBacktrace::new::hb70100bfb7a580fd (0x55a207199d5f)
at /home/korvin/.cargo/registry/src/github.com-1ecc6299db9ec823/failure-0.1.5/src/backtrace/internal.rs:44
1: failure::backtrace::Backtrace::new::h97063d1c45ba6677 (0x55a207199fef)
at /home/korvin/.cargo/registry/src/github.com-1ecc6299db9ec823/failure-0.1.5/src/backtrace/mod.rs:111
<failure::backtrace::Backtrace as core::default::Default>::default::hcf04c262efe60191
at /home/korvin/.cargo/registry/src/github.com-1ecc6299db9ec823/failure-0.1.5/src/backtrace/mod.rs:125
2: <failure::error::error_impl::ErrorImpl as core::convert::From<F>>::from::h3ab35b9b654c5c1e (0x55a206d9ee6c)
at /home/korvin/.cargo/registry/src/github.com-1ecc6299db9ec823/failure-0.1.5/src/error/error_impl.rs:19
<failure::error::Error as core::convert::From<F>>::from::h45fd111b4a40a452
at /home/korvin/.cargo/registry/src/github.com-1ecc6299db9ec823/failure-0.1.5/src/error/mod.rs:36
failure::error_message::err_msg::h635b7dbde3343ea4
at /home/korvin/.cargo/registry/src/github.com-1ecc6299db9ec823/failure-0.1.5/src/error_message.rs:12
ra_lsp_server::server_world::ServerWorld::uri_to_file_id::{{closure}}::h4d12467267fe29dc
at crates/ra_lsp_server/src/server_world.rs:257
<core::option::Option<T>>::ok_or_else::hc21565f0ef482cd5
at /rustc/9fda7c2237db910e41d6a712e9a2139b352e558b/src/libcore/option.rs:528
ra_lsp_server::server_world::ServerWorld::uri_to_file_id::h12409871fb309fcf
at crates/ra_lsp_server/src/server_world.rs:253
3: <&'a lsp_types::TextDocumentIdentifier as ra_lsp_server::conv::TryConvWith>::try_conv_with::h104bfeb956e96bd0 (0x55a206dc1d90)
at crates/ra_lsp_server/src/conv.rs:234
<&'a lsp_types::TextDocumentPositionParams as ra_lsp_server::conv::TryConvWith>::try_conv_with::h3b604a4c10581ac6
at crates/ra_lsp_server/src/conv.rs:242
4: ra_lsp_server::main_loop::handlers::handle_hover::hba5e817577cfba3c (0x55a206dccf28)
at crates/ra_lsp_server/src/main_loop/handlers.rs:446
5: ra_lsp_server::main_loop::PoolDispatcher::on::{{closure}}::hf851038b39951503 (0x55a206d3480f)
at crates/ra_lsp_server/src/main_loop.rs:441
<F as threadpool::FnBox>::call_box::hdcdc83bd09b08650
at /home/korvin/.cargo/registry/src/github.com-1ecc6299db9ec823/threadpool-1.7.1/src/lib.rs:95
6: threadpool::spawn_in_pool::{{closure}}::ha4d43bb0342d423b (0x55a206e60832)
at /home/korvin/.cargo/registry/src/github.com-1ecc6299db9ec823/threadpool-1.7.1/src/lib.rs:767
std::sys_common::backtrace::__rust_begin_short_backtrace::hffad098dc90fea63
at /rustc/9fda7c2237db910e41d6a712e9a2139b352e558b/src/libstd/sys_common/backtrace.rs:136
7: __rust_maybe_catch_panic (0x55a207261cf9)
at src/libpanic_unwind/lib.rs:102
8: std::panicking::try::hfc053a4d611b11c9 (0x55a206e5e13b)
at /rustc/9fda7c2237db910e41d6a712e9a2139b352e558b/src/libstd/panicking.rs:289
std::panic::catch_unwind::h379924226dec8b17
at /rustc/9fda7c2237db910e41d6a712e9a2139b352e558b/src/libstd/panic.rs:398
std::thread::Builder::spawn_unchecked::{{closure}}::h47544204483651c8
at /rustc/9fda7c2237db910e41d6a712e9a2139b352e558b/src/libstd/thread/mod.rs:476
<F as alloc::boxed::FnBox<A>>::call_box::h17f0e2f6677f0a8a
at /rustc/9fda7c2237db910e41d6a712e9a2139b352e558b/src/liballoc/boxed.rs:673
9: <alloc::boxed::Box<(dyn alloc::boxed::FnBox<A, Output=R> + 'a)> as core::ops::function::FnOnce<A>>::call_once::hece536cf07b94f8d (0x55a2072558bd)
at /rustc/9fda7c2237db910e41d6a712e9a2139b352e558b/src/liballoc/boxed.rs:683
std::sys_common::thread::start_thread::h9605a7df0f911844
at src/libstd/sys_common/thread.rs:24
std::sys::unix::thread::Thread::new::thread_start::hca8e72c41fa9d291
at src/libstd/sys/unix/thread.rs:90
10: start_thread (0x7fd2cd3246b9)
11: clone (0x7fd2cce4441c)
12: <unknown> (0x0)
Code: -32603
Please note, that the path /home/korvin/work/Parity/substrate-node-template/runtime/src/utxo.rs
is valid and it's one of the files being edited. The same file may be found here https://github.com/paritytech/substrate-node-template/blob/utxo/runtime/src/utxo.rs.
HEAD of the analyzer repo:
$ git show
commit 97ade899937dafcafa852177c85edb22ce0b80dc
Merge: 777c79c 00e6b5d
Author: bors[bot] <bors[bot]@users.noreply.github.com>
Date: Thu Jan 31 07:06:31 2019 +0000
Metadata
Metadata
Assignees
Labels
No labels