Closed krobelus closed 4 days ago
Duplicate of #18523.
I guess you mean one of
or #17214 (rust-analyzer panics when applying "Implement missing members" quick fix: Can't find CONST_ARG@202..229 in AstIdMap)
Yeah, sorry, I meant #17321 š¤¦. But you also mixed up the issue titles.
rust-analyzer version:
rust-analyzer 1 (30e71b609b 2024-11-10)
rustc version: rustc 1.82.0 (f6e511eec 2024-10-15)
editor or extension: reproduced with both Kakoune and Neovim
relevant settings: none
repository link (if public, optional): https://github.com/kakoune-lsp/kakoune-lsp
git clone https://github.com/kakoune-lsp/kakoune-lsp
src/main.rs
in your editorpid_files: Option<[TemporaryFile; 2]>,
and move the cursor to theTemporaryFile
part.:LspLog
in Neovim or:buffer *debug*
in Kakoune)crash log
``` LSP: INFO Language server stderr: request: textDocument/codeAction CodeActionParams { LSP: INFO Language server stderr: Panic context: LSP: INFO Language server stderr: > LSP: INFO Language server stderr: version: 1.82.0 (f6e511e 2024-10-15) LSP: INFO Language server stderr: text_document: TextDocumentIdentifier { LSP: INFO Language server stderr: uri: Url { LSP: INFO Language server stderr: scheme: "file", LSP: INFO Language server stderr: cannot_be_a_base: false, LSP: INFO Language server stderr: username: "", LSP: INFO Language server stderr: password: None, LSP: INFO Language server stderr: host: None, LSP: INFO Language server stderr: port: None, LSP: INFO Language server stderr: path: "/home/johannes/git/kakoune-lsp/src/main.rs", LSP: INFO Language server stderr: query: None, LSP: INFO Language server stderr: fragment: None, LSP: INFO Language server stderr: }, LSP: INFO Language server stderr: }, LSP: INFO Language server stderr: range: Range { LSP: INFO Language server stderr: start: Position { LSP: INFO Language server stderr: line: 667, LSP: INFO Language server stderr: character: 5, LSP: INFO Language server stderr: }, LSP: INFO Language server stderr: end: Position { LSP: INFO Language server stderr: line: 667, LSP: INFO Language server stderr: character: 5, LSP: INFO Language server stderr: }, LSP: INFO Language server stderr: }, LSP: INFO Language server stderr: context: CodeActionContext { LSP: INFO Language server stderr: diagnostics: [], LSP: INFO Language server stderr: only: None, LSP: INFO Language server stderr: trigger_kind: Some( LSP: INFO Language server stderr: Automatic, LSP: INFO Language server stderr: ), LSP: INFO Language server stderr: }, LSP: INFO Language server stderr: work_done_progress_params: WorkDoneProgressParams { LSP: INFO Language server stderr: work_done_token: None, LSP: INFO Language server stderr: }, LSP: INFO Language server stderr: partial_result_params: PartialResultParams { LSP: INFO Language server stderr: }, LSP: INFO Language server stderr: partial_result_token: None, LSP: INFO Language server stderr: } LSP: INFO Language server stderr: LSP: INFO Language server stderr: thread 'Worker' panicked at crates/span/src/ast_id.rs:226:21: LSP: INFO Language server stderr: [SyntaxNodePtr { kind: SOURCE_FILE, range: 0..490 }, SyntaxNodePtr { kind: USE, range: 0..14 }, SyntaxNodePtr { kind: IMPL, range: 16..489 }, SyntaxNodePtr { kind: FN, range: 57..217 }, SyntaxNodePtr { kind: FN, range: 223..338 }, SyntaxNodePtr { kind: FN, range: 344..487 }, SyntaxNodePtr { kind: BLOCK_EXPR, range: 116..217 }, SyntaxNodePtr { kind: BLOCK_EXPR, range: 299..338 }, SyntaxNodePtr { kind: BLOCK_EXPR, range: 443..487 }] LSP: INFO Language server stderr: Can't find CONST_ARG@129..130 in AstIdMap: LSP: INFO Language server stderr: stack backtrace: LSP: INFO Language server stderr: 0: 0x7906123ce6ea -