-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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 at 'invalid offset' #14839
Comments
It seems that just ignoring this error can make RA work again let line_col = match line_index.index.try_line_col(offset) {
Some(line_col) => line_col,
None => return lsp_types::Position::new(0, 0),
}; |
Minimal repo:Just invoke
|
rust-analyzer version: @Veykril The bug still exists in v0.4.1951.
|
rust-analyzer version: @Veykril I think this bug still exists
|
fix: Fix callHierarchy LSP violation Fixes rust-lang/rust-analyzer#14839
error: it happens sometimes when I use rust-analyzer its 'Show Call Hierarchy' in editor ; maybe because of my use of a local crate .? release version: rustc version 1.83.0-nightly (363ae4188 2024-09-24) |
@springyworks That is... weird? They seem to be the same version. |
rust-analyzer version: 0.0.0 (e4977e7 2023-05-18)
rustc version: rustc 1.69.0 (84c898d65 2023-04-16)
RA panic when invoke
CallHierarchy
onrust_analyzer::handlers::request::handle_completion
The text was updated successfully, but these errors were encountered: