Skip to content

thread 'Worker' panicked #16536

Closed
Closed
@pfwang80s

Description

@pfwang80s
Panic context:
> 
version: 0.3.1831-standalone (39ad79bec 2024-02-04)
request: textDocument/completion CompletionParams {
    text_document_position: TextDocumentPositionParams {
        text_document: TextDocumentIdentifier {
            uri: Url {
                scheme: "file",
                cannot_be_a_base: false,
                username: "",
                password: None,
                host: None,
                port: None,
                path: "xx.rs",
                query: None,
                fragment: None,
            },
        },
        position: Position {
            line: 292,
            character: 9,
        },
    },
    work_done_progress_params: WorkDoneProgressParams {
        work_done_token: None,
    },
    partial_result_params: PartialResultParams {
        partial_result_token: None,
    },
    context: Some(
        CompletionContext {
            trigger_kind: Invoked,
            trigger_character: None,
        },
    ),
}

thread 'Worker' panicked at /Users/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/line-index-0.1.1/src/lib.rs:111:35:
invalid offset
stack backtrace:
   0: _rust_begin_unwind
   1: core::panicking::panic_fmt
   2: core::option::expect_failed
   3: rust_analyzer::lsp::to_proto::range
   4: rust_analyzer::lsp::to_proto::text_edit
   5: rust_analyzer::lsp::to_proto::completion_items
   6: rust_analyzer::handlers::request::handle_completion
   7: std::panicking::try
   8: core::ops::function::FnOnce::call_once{{vtable.shim}}
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
[Error - 4:33:41 PM] Request textDocument/completion failed.
  Message: request handler panicked: invalid offset
  Code: -32603 

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions