Skip to content
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

thread 'Worker' panicked #16536

Closed
pfwang80s opened this issue Feb 12, 2024 · 0 comments · Fixed by #17157
Closed

thread 'Worker' panicked #16536

pfwang80s opened this issue Feb 12, 2024 · 0 comments · Fixed by #17157
Labels
C-bug Category: bug I-panic

Comments

@pfwang80s
Copy link

pfwang80s commented Feb 12, 2024

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 
@pfwang80s pfwang80s added the C-bug Category: bug label Feb 12, 2024
@bors bors closed this as completed in 7f19431 Apr 29, 2024
lnicola pushed a commit to lnicola/rust that referenced this issue May 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: bug I-panic
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants