Closed
Description
Summary
I got this crash multiple times:
thread 'main' panicked at 'Position 738 is out of range for changeset len 695!', helix-core/src/transaction.rs:397:13
Reproduction Steps
I tried this:
hx
- Navigate in the document
Helix log
~/.cache/helix/helix.log
2022-10-12T15:13:00.469 helix_term::application [WARN] lsp position out of bounds - Diagnostic { range: Range { start: Position { line: 43, character: 0 }, end: Position { line: 43, character: 1 } }, severity: Some(Error), code: None, code_description: None, source: Some("rustc"), message: "unexpected closing delimiter: `}`\nunexpected closing delimiter", related_information: Some([DiagnosticRelatedInformation { location: Location { uri: Url { scheme: "file", cannot_be_a_base: false, username: "", password: None, host: None, port: None, path: "/home/jummit/Programming/tree-sitter-lsp/src/main.rs", query: None, fragment: None }, range: Range { start: Position { line: 40, character: 24 }, end: Position { line: 40, character: 25 } } }, message: "this opening brace..." }, DiagnosticRelatedInformation { location: Location { uri: Url { scheme: "file", cannot_be_a_base: false, username: "", password: None, host: None, port: None, path: "/home/jummit/Programming/tree-sitter-lsp/src/main.rs", query: None, fragment: None }, range: Range { start: Position { line: 42, character: 4 }, end: Position { line: 42, character: 5 } } }, message: "...matches this closing brace" }]), tags: None, data: None }
2022-10-12T15:13:00.470 helix_term::application [WARN] lsp position out of bounds - Diagnostic { range: Range { start: Position { line: 42, character: 4 }, end: Position { line: 42, character: 5 } }, severity: Some(Hint), code: None, code_description: None, source: Some("rustc"), message: "...matches this closing brace", related_information: Some([DiagnosticRelatedInformation { location: Location { uri: Url { scheme: "file", cannot_be_a_base: false, username: "", password: None, host: None, port: None, path: "/home/jummit/Programming/tree-sitter-lsp/src/main.rs", query: None, fragment: None }, range: Range { start: Position { line: 43, character: 0 }, end: Position { line: 43, character: 1 } } }, message: "original diagnostic" }]), tags: None, data: None }
2022-10-12T15:13:08.182 helix_term::application [WARN] lsp position out of bounds - Diagnostic { range: Range { start: Position { line: 42, character: 0 }, end: Position { line: 42, character: 1 } }, severity: Some(Error), code: None, code_description: None, source: Some("rustc"), message: "unexpected closing delimiter: `}`\nunexpected closing delimiter", related_information: Some([DiagnosticRelatedInformation { location: Location { uri: Url { scheme: "file", cannot_be_a_base: false, username: "", password: None, host: None, port: None, path: "/home/jummit/Programming/tree-sitter-lsp/src/main.rs", query: None, fragment: None }, range: Range { start: Position { line: 39, character: 24 }, end: Position { line: 39, character: 25 } } }, message: "this opening brace..." }, DiagnosticRelatedInformation { location: Location { uri: Url { scheme: "file", cannot_be_a_base: false, username: "", password: None, host: None, port: None, path: "/home/jummit/Programming/tree-sitter-lsp/src/main.rs", query: None, fragment: None }, range: Range { start: Position { line: 41, character: 4 }, end: Position { line: 41, character: 5 } } }, message: "...matches this closing brace" }]), tags: None, data: None }
2022-10-12T15:13:08.182 helix_term::application [WARN] lsp position out of bounds - Diagnostic { range: Range { start: Position { line: 41, character: 4 }, end: Position { line: 41, character: 5 } }, severity: Some(Hint), code: None, code_description: None, source: Some("rustc"), message: "...matches this closing brace", related_information: Some([DiagnosticRelatedInformation { location: Location { uri: Url { scheme: "file", cannot_be_a_base: false, username: "", password: None, host: None, port: None, path: "/home/jummit/Programming/tree-sitter-lsp/src/main.rs", query: None, fragment: None }, range: Range { start: Position { line: 42, character: 0 }, end: Position { line: 42, character: 1 } } }, message: "original diagnostic" }]), tags: None, data: None }
Platform
Linux
Terminal Emulator
Gnome Terminal
Helix Version
22.08.1 (c54a036)