Skip to content

Request workspace/symbol failed. #16208

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

Closed
dingbo8128 opened this issue Dec 29, 2023 · 1 comment
Closed

Request workspace/symbol failed. #16208

dingbo8128 opened this issue Dec 29, 2023 · 1 comment
Labels
C-bug Category: bug

Comments

@dingbo8128
Copy link

version

Published
2020-02-10, 17:24:28
Last released
2023-12-29, 08:33:09
Last updated
2023-12-25, 16:29:34
Identifier
rust-lang.rust-analyzer

step

press Ctrl + T to search function

trace

   0: std::panicking::begin_panic_handler
             at /rustc/a28077b28a02b92985b3a3faecf92813155f1ea1/library\std\src\panicking.rs:597
   1: core::panicking::panic_fmt
             at /rustc/a28077b28a02b92985b3a3faecf92813155f1ea1/library\core\src\panicking.rs:72
   2: core::panicking::panic_bounds_check
             at /rustc/a28077b28a02b92985b3a3faecf92813155f1ea1/library\core\src\panicking.rs:180
   3: salsa::QueryTable<Q>::get
   4: <DB as hir_expand::db::ExpandDatabase>::lookup_intern_syntax_context
   5: <alloc::vec::Vec<T> as alloc::vec::spec_from_iter::SpecFromIter<T,I>>::from_iter
   6: hir_expand::hygiene::apply_mark
   7: mbe::expander::transcriber::expand_subtree
   8: mbe::expander::transcriber::transcribe
   9: mbe::expander::expand_rules
  10: hir_expand::db::DeclarativeMacroExpander::expand
  11: <hir_expand::db::ParseMacroExpansionQuery as salsa::plumbing::QueryFunction>::execute
  12: salsa::Cycle::catch
  13: salsa::derived::slot::Slot<Q,MP>::read
  14: salsa::derived::slot::Slot<Q,MP>::read
  15: salsa::QueryTable<Q>::get
  16: <DB as hir_expand::db::ExpandDatabase>::parse_macro_expansion
  17: hir_def::expander::Expander::enter_expand
  18: hir_def::body::lower::ExprCollector::maybe_collect_expr
  19: hir_def::body::lower::ExprCollector::maybe_collect_expr
  20: <alloc::vec::Vec<T> as alloc::vec::spec_from_iter::SpecFromIter<T,I>>::from_iter
  21: <alloc::boxed::Box<[I]> as core::iter::traits::collect::FromIterator<I>>::from_iter
  22: hir_def::body::lower::ExprCollector::maybe_collect_expr
  23: hir_def::body::lower::ExprCollector::collect_stmt
  24: hir_def::body::lower::ExprCollector::maybe_collect_expr
  25: hir_def::body::lower::ExprCollector::maybe_collect_expr
  26: hir_def::body::lower::ExprCollector::maybe_collect_expr
  27: hir_def::body::lower::ExprCollector::collect_expr_opt
  28: hir_def::body::lower::ExprCollector::maybe_collect_expr
  29: hir_def::body::lower::ExprCollector::maybe_collect_expr
  30: hir_def::body::lower::ExprCollector::maybe_collect_expr
  31: hir_def::body::lower::ExprCollector::collect_expr_opt
  32: hir_def::body::lower::ExprCollector::maybe_collect_expr
  33: hir_def::body::lower::ExprCollector::collect_stmt
  34: hir_def::body::lower::ExprCollector::maybe_collect_expr
  35: hir_def::body::lower::lower
  36: hir_def::body::Body::body_with_source_map_query
  37: salsa::Cycle::catch
  38: salsa::derived::slot::Slot<Q,MP>::evict
  39: salsa::derived::slot::Slot<Q,MP>::read
  40: <salsa::derived::DerivedStorage<Q,MP> as salsa::plumbing::QueryStorageOps<Q>>::fetch
  41: salsa::Cycle::catch
  42: salsa::derived::slot::Slot<Q,MP>::evict
  43: salsa::derived::slot::Slot<Q,MP>::read
  44: <salsa::derived::DerivedStorage<Q,MP> as salsa::plumbing::QueryStorageOps<Q>>::fetch
  45: hir::symbols::SymbolCollector::collect_module
  46: hir::symbols::SymbolCollector::collect
  47: hir::symbols::SymbolCollector::collect_module
  48: <ide_db::symbol_index::ModuleSymbolsQuery as salsa::plumbing::QueryFunction>::execute
  49: salsa::derived::slot::Slot<Q,MP>::read
  50: salsa::derived::slot::Slot<Q,MP>::read
  51: <salsa::derived::DerivedStorage<Q,MP> as salsa::plumbing::QueryStorageOps<Q>>::fetch
  52: alloc::vec::in_place_collect::<impl alloc::vec::spec_from_iter::SpecFromIter<T,I> for alloc::vec::Vec<T>>::from_iter
  53: <alloc::boxed::Box<[I]> as core::iter::traits::collect::FromIterator<I>>::from_iter
  54: ide_db::symbol_index::crate_symbols
  55: rayon::iter::plumbing::Folder::consume_iter
  56: rayon::iter::plumbing::bridge_producer_consumer::helper
  57: rayon_core::join::join_context::{{closure}}
  58: rayon_core::registry::in_worker
  59: rayon::iter::plumbing::bridge_producer_consumer::helper
  60: rayon_core::join::join_context::{{closure}}
  61: rayon_core::registry::in_worker
  62: rayon::iter::plumbing::bridge_producer_consumer::helper
  63: <rayon_core::job::StackJob<L,F,R> as rayon_core::job::Job>::execute
  64: rayon_core::registry::WorkerThread::wait_until_cold
  65: rayon_core::registry::ThreadBuilder::run
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
[Error - 2:04:08 PM] Request workspace/symbol failed.
  Message: request handler panicked: index out of bounds: the len is 155860 but the index is 4294967039
  Code: -32603 
@dingbo8128 dingbo8128 added the C-bug Category: bug label Dec 29, 2023
@lnicola
Copy link
Member

lnicola commented Dec 29, 2023

CC #16200, probably a dupe.

@Veykril Veykril closed this as completed Jan 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: bug
Projects
None yet
Development

No branches or pull requests

3 participants