Skip to content

thread '<unnamed>' panicked at 'Bad range: node range 0..69, range 50..72' #10042

@bjorn3

Description

@bjorn3
version: 996300f4a 2021-08-23 stable
[...]
thread '<unnamed>' panicked at 'Bad range: node range 0..69, range 50..72', /home/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/rowan-0.13.0-pre.8/src/cursor.rs:791:13
stack backtrace:
   0: rust_begin_unwind
             at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633/library/std/src/panicking.rs:515:5
   1: std::panicking::begin_panic_fmt
             at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633/library/std/src/panicking.rs:457:5
   2: rowan::cursor::SyntaxNode::covering_element
   3: ide_completion::patterns::find_node_with_range
   4: ide_completion::patterns::determine_location
   5: ide_completion::context::CompletionContext::fill
   6: ide_completion::context::CompletionContext::new
   7: ide_completion::completions
   8: std::panicking::try
   9: rust_analyzer::handlers::handle_completion
  10: rust_analyzer::dispatch::RequestDispatcher::on::{{closure}}::{{closure}}
  11: <F as threadpool::FnBox>::call_box
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
[Error - 14:35:51] Request textDocument/completion failed.
  Message: server panicked: Bad range: node range 0..69, range 50..72
  Code: -32603 

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-completionautocompletionBroken WindowBugs / technical debt to be addressed immediately

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions