I'm running the pre-release version of RA and I'd like to hide these error popups, is it possible?
That's not possible no, though all of those requests failing looks rather suspicious.
already filed a bug report ^^
opened 01:22AM - 20 Mar 22 UTC
closed 12:53PM - 02 Apr 22 UTC
A-ty
Broken Window
C-bug
the code below causes crashes on hover, text change, or RA startup.
Some additi… onal findings:
- GATs without const generics seem unaffected
- removing the `fn` also gets rid of the crashy
```rust
#![feature(generic_associated_types)]
trait ATrait {}
trait Crash {
type Member<const N: usize>: ATrait;
fn new<const N: usize>() -> Self::Member<N>;
}
```
**rust-analyzer version**: `a82caff58 2022-03-20 nightly`
**rustc version**: `rustc 1.61.0-nightly (f103b2969 2022-03-12)`
crash log:
```code
Panic context:
>
version: a82caff58 2022-03-20 nightly
request: textDocument/semanticTokens/full/delta SemanticTokensDeltaParams {
work_done_progress_params: WorkDoneProgressParams {
work_done_token: None,
},
partial_result_params: PartialResultParams {
partial_result_token: None,
},
text_document: TextDocumentIdentifier {
uri: Url {
scheme: "file",
cannot_be_a_base: false,
username: "",
password: None,
host: None,
port: None,
path: "/private/tmp/aec.22_03_12_04_01_53.Ue/gat-ra/src/lib.rs",
query: None,
fragment: None,
},
},
previous_result_id: "1",
}
thread '<unnamed>' panicked at 'called `Option::unwrap()` on a `None` value', /Users/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/chalk-ir-0.79.0/src/lib.rs:1447:27
stack backtrace:
0: _rust_begin_unwind
1: core::panicking::panic_fmt
2: core::panicking::panic
3: hir_ty::chalk_db::<impl chalk_solve::RustIrDatabase<hir_ty::interner::Interner> for hir_ty::traits::ChalkContext>::impls_for_trait
4: chalk_solve::clauses::program_clauses_that_could_match
5: chalk_recursive::solve::SolveIteration::solve_iteration
6: chalk_recursive::fixed_point::RecursiveContext<K,V>::solve_goal
7: chalk_recursive::fulfill::Fulfill<I,Solver>::prove
8: chalk_recursive::fulfill::Fulfill<I,Solver>::solve
9: chalk_recursive::solve::SolveIteration::solve_iteration
10: chalk_recursive::fixed_point::RecursiveContext<K,V>::solve_goal
11: chalk_recursive::fixed_point::RecursiveContext<K,V>::solve_root_goal
12: <hir_ty::db::TraitSolveQueryQuery as salsa::plumbing::QueryFunction>::execute
13: salsa::runtime::Runtime::execute_query_implementation
14: salsa::derived::slot::Slot<Q,MP>::read_upgrade
15: salsa::derived::slot::Slot<Q,MP>::read
16: salsa::QueryTable<Q>::get
17: <DB as hir_ty::db::HirDatabase>::trait_solve_query
18: hir_ty::db::trait_solve_wait
19: <DB as hir_ty::db::HirDatabase>::trait_solve
20: hir_ty::infer::unify::InferenceTable::register_obligation_in_env
21: hir_ty::infer::unify::InferenceTable::normalize_projection_ty
22: <hir_ty::fold_tys_and_consts::TyFolder<F> as chalk_ir::fold::Folder<hir_ty::interner::Interner>>::fold_ty
23: hir_ty::infer::InferenceContext::make_ty_with_mode
24: hir_ty::infer::infer_query
25: salsa::runtime::Runtime::execute_query_implementation
26: salsa::derived::slot::Slot<Q,MP>::read_upgrade
27: salsa::derived::slot::Slot<Q,MP>::read
28: salsa::QueryTable<Q>::get
29: <DB as hir_ty::db::HirDatabase>::infer_query
30: hir_ty::db::infer_wait
31: hir::source_analyzer::SourceAnalyzer::new_for_body
32: hir::semantics::SemanticsImpl::analyze_impl
33: ide_db::defs::NameRefClass::classify
34: ide::syntax_highlighting::highlight::name_like
35: ide::syntax_highlighting::highlight
36: std::panicking::try
37: rust_analyzer::handlers::handle_semantic_tokens_full_delta
38: std::panicking::try
39: <F as threadpool::FnBox>::call_box
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
[Error - 2:19:55 AM] Request textDocument/semanticTokens/full/delta failed.
Message: server panicked: called `Option::unwrap()` on a `None` value
Code: -32603
```
1 Like
You could try turning off semantic highlighting in the VSCode settings to at least prevent the pop up from appearing as you type. Not 100% sure if VSCode will stop requesting them then though.
now the crashes are reduced to "only on hover". It's an improvement
system
Closed
June 18, 2022, 1:35am
6
This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.