Open mylvghb opened 3 months ago
Example:
use std::env; fn main() { let args: Vec<String> = env::args().collect(); dbg!(args); }
Screenshots:
Detail Description:
Panic context:
version: 0.3.1958-standalone (5bf2f85c8 2024-05-09) request: textDocument/inlayHint InlayHintParams { work_done_progress_params: WorkDoneProgressParams { work_done_token: None, }, text_document: TextDocumentIdentifier { uri: Url { scheme: "file", cannot_be_a_base: false, username: "", password: None, host: None, port: None, path: "/e%3A/study/rust/minigrep/src/main.rs", query: None, fragment: None, }, }, range: Range { start: Position { line: 0, character: 0, }, end: Position { line: 6, character: 0, }, }, }
thread 'Worker' panicked at C:\Users\runneradmin.cargo\registry\src\index.crates.io-6f17d22bba15001f\line-index-0.1.1\src\lib.rs:111:35: invalid offset stack backtrace: 0: std::panicking::begin_panic_handler at /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library\std\src\panicking.rs:645 1: core::panicking::panic_fmt at /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library\core\src\panicking.rs:72 2: core::panicking::panic_display<ref$<str$> > at /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library\core\src\panicking.rs:197 3: core::panicking::panic_str at /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library\core\src\panicking.rs:172 4: core::option::expect_failed at /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library\core\src\option.rs:1995 5: rust_analyzer::lsp::to_proto::inlay_hint 6: alloc::vec::in_place_collect::<impl alloc::vec::spec_from_iter::SpecFromIter<T,I> for alloc::vec::Vec>::from_iter 7: core::iter::adapters::try_process 8: rust_analyzer::handlers::request::handle_inlay_hints 9: std::panicking::try 10: core::ops::function::FnOnce::call_once{{vtable.shim}} note: Some details are omitted, run with RUST_BACKTRACE=full for a verbose backtrace. [Error - 14:07:05] Request textDocument/inlayHint failed. Message: request handler panicked: invalid offset Code: -32603 Panic context:
RUST_BACKTRACE=full
thread 'Worker' panicked at C:\Users\runneradmin.cargo\registry\src\index.crates.io-6f17d22bba15001f\line-index-0.1.1\src\lib.rs:111:35: invalid offset stack backtrace: 0: std::panicking::begin_panic_handler at /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library\std\src\panicking.rs:645 1: core::panicking::panic_fmt at /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library\core\src\panicking.rs:72 2: core::panicking::panic_display<ref$<str$> > at /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library\core\src\panicking.rs:197 3: core::panicking::panic_str at /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library\core\src\panicking.rs:172 4: core::option::expect_failed at /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library\core\src\option.rs:1995 5: rust_analyzer::lsp::to_proto::inlay_hint 6: alloc::vec::in_place_collect::<impl alloc::vec::spec_from_iter::SpecFromIter<T,I> for alloc::vec::Vec>::from_iter 7: core::iter::adapters::try_process 8: rust_analyzer::handlers::request::handle_inlay_hints 9: std::panicking::try 10: core::ops::function::FnOnce::call_once{{vtable.shim}} note: Some details are omitted, run with RUST_BACKTRACE=full for a verbose backtrace. [Error - 14:07:07] Request textDocument/inlayHint failed. Message: request handler panicked: invalid offset Code: -32603
I can't reproduce it on 5bf2f85c8054d80424899fa581db1b192230efb5.
I can't reproduce it on 5bf2f85.
If there is no dbg! macro in the code, ra works fine.
dbg!
Example:
Screenshots:
Detail Description:
Panic context:
thread 'Worker' panicked at C:\Users\runneradmin.cargo\registry\src\index.crates.io-6f17d22bba15001f\line-index-0.1.1\src\lib.rs:111:35: invalid offset stack backtrace: 0: std::panicking::begin_panic_handler at /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library\std\src\panicking.rs:645 1: core::panicking::panic_fmt at /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library\core\src\panicking.rs:72 2: core::panicking::panic_display<ref$<str$> > at /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library\core\src\panicking.rs:197 3: core::panicking::panic_str at /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library\core\src\panicking.rs:172 4: core::option::expect_failed at /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library\core\src\option.rs:1995 5: rust_analyzer::lsp::to_proto::inlay_hint 6: alloc::vec::in_place_collect::<impl alloc::vec::spec_from_iter::SpecFromIter<T,I> for alloc::vec::Vec>::from_iter
7: core::iter::adapters::try_process
8: rust_analyzer::handlers::request::handle_inlay_hints
9: std::panicking::try
10: core::ops::function::FnOnce::call_once{{vtable.shim}}
note: Some details are omitted, run with
RUST_BACKTRACE=full
for a verbose backtrace. [Error - 14:07:05] Request textDocument/inlayHint failed. Message: request handler panicked: invalid offset Code: -32603 Panic context:thread 'Worker' panicked at C:\Users\runneradmin.cargo\registry\src\index.crates.io-6f17d22bba15001f\line-index-0.1.1\src\lib.rs:111:35: invalid offset stack backtrace: 0: std::panicking::begin_panic_handler at /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library\std\src\panicking.rs:645 1: core::panicking::panic_fmt at /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library\core\src\panicking.rs:72 2: core::panicking::panic_display<ref$<str$> > at /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library\core\src\panicking.rs:197 3: core::panicking::panic_str at /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library\core\src\panicking.rs:172 4: core::option::expect_failed at /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library\core\src\option.rs:1995 5: rust_analyzer::lsp::to_proto::inlay_hint 6: alloc::vec::in_place_collect::<impl alloc::vec::spec_from_iter::SpecFromIter<T,I> for alloc::vec::Vec>::from_iter
7: core::iter::adapters::try_process
8: rust_analyzer::handlers::request::handle_inlay_hints
9: std::panicking::try
10: core::ops::function::FnOnce::call_once{{vtable.shim}}
note: Some details are omitted, run with
RUST_BACKTRACE=full
for a verbose backtrace. [Error - 14:07:07] Request textDocument/inlayHint failed. Message: request handler panicked: invalid offset Code: -32603