Open
Description
Summary
Helix crashes when I edit a Markdown document that is part or all Cyrillic characters. An error is displayed in the terminal:
% hx README.md
thread 'main' panicked at 'byte index 421 is not a char boundary; it is inside 'З' (bytes 420..422) of `тся.
2. Когда началось её исполнение.
3. Во сколько её исполнение закончилось.
4. Какой код завершения она вернула.
2. Постепенное исполнение`[...]', helix-core/src/syntax.rs:1246:25
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
- System: ArchLinux
- Terminal: GNOME Console
LC_ALL
:en_US.UTF-8
, then setru_RU.UTF-8
Reproduction Steps
I tried this:
hx
orRUST_BACKTRACE=1 hx -vv README.md
- File with Cyrillic symbols.
- Crash!
I expected this to happen:
Instead, this happened:
% RUST_BACKTRACE=1 hx -vv README.md
thread 'main' panicked at 'byte index 421 is not a char boundary; it is inside 'З' (bytes 420..422) of `тся.
4. Когда началось её исполнение.
5. Во сколько её исполнение закончилось.
6. Какой код завершения она вернула.
2. Постепенное исполнение`[...]', helix-core/src/syntax.rs:1246:25
stack backtrace:
0: rust_begin_unwind
at /rustc/84c898d65adf2f39a5a98507f1fe0ce10a2b8dbc/library/std/src/panicking.rs:579:5
1: core::panicking::panic_fmt
at /rustc/84c898d65adf2f39a5a98507f1fe0ce10a2b8d
[helix.log](https://github.com/helix-editor/helix/files/11675725/helix.log)
bc/library/core/src/panicking.rs:64:14
2: core::str::slice_error_fail_rt
3: core::str::slice_error_fail
at /rustc/84c898d65adf2f39a5a98507f1fe0ce10a2b8dbc/library/core/src/str/mod.rs:86:9
4: core::ops::function::impls::<impl core::ops::function::FnMut<A> for &mut F>::call_mut
5: tree_sitter::Parser::parse_with::read
6: ts_lexer_start
7: ts_parser__lex
8: ts_parser_parse
9: helix_core::syntax::LanguageLayer::parse
10: std::thread::local::LocalKey<T>::with
11: helix_core::syntax::Syntax::update
12: helix_view::document::Document::apply_impl
13: helix_view::document::Document::apply_inner
14: helix_term::commands::insert::insert_char
15: helix_term::ui::editor::EditorView::insert_mode
16: <helix_term::ui::editor::EditorView as helix_term::compositor::Component>::handle_event
17: helix_term::compositor::Compositor::handle_event
18: tokio::runtime::park::CachedParkThread::block_on
19: tokio::runtime::scheduler::multi_thread::MultiThread::block_on
20: hx::main
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
Helix log
~/.cache/helix/helix.log
2023-06-07T01:14:52.142 helix_view::editor [ERROR] Failed to initialize the LSP for `source.bash` { cannot find binary path }
2023-06-07T01:16:16.213 helix_view::editor [ERROR] editor error: Async job failed: request 2 timed out
2023-06-07T01:16:16.947 helix_view::editor [ERROR] editor error: Async job failed: request 3 timed out
2023-06-07T01:16:17.890 helix_view::editor [ERROR] editor error: Async job failed: request 4 timed out
2023-06-07T01:16:18.480 helix_view::editor [ERROR] editor error: Async job failed: request 5 timed out
2023-06-07T01:16:19.122 helix_view::editor [ERROR] editor error: Async job failed: request 6 timed out
2023-06-07T01:16:20.050 helix_view::editor [ERROR] editor error: Async job failed: request 7 timed out
2023-06-07T01:16:20.768 helix_lsp::transport [ERROR] <- ServerError(-32801): content modified
2023-06-07T01:16:20.768 helix_lsp::transport [ERROR] Tried sending response into a closed channel (id=Num(2)), original request likely timed out
2023-06-07T01:16:20.768 helix_lsp::transport [ERROR] <- ServerError(-32801): content modified
2023-06-07T01:16:20.768 helix_lsp::transport [ERROR] Tried sending response into a closed channel (id=Num(3)), original request likely timed out
2023-06-07T01:16:20.768 helix_lsp::transport [ERROR] <- ServerError(-32801): content modified
2023-06-07T01:16:20.768 helix_lsp::transport [ERROR] Tried sending response into a closed channel (id=Num(4)), original request likely timed out
2023-06-07T01:16:20.768 helix_lsp::transport [ERROR] <- ServerError(-32801): content modified
2023-06-07T01:16:20.768 helix_lsp::transport [ERROR] Tried sending response into a closed channel (id=Num(5)), original request likely timed out
2023-06-07T01:16:20.768 helix_lsp::transport [ERROR] <- ServerError(-32801): content modified
2023-06-07T01:16:20.768 helix_lsp::transport [ERROR] Tried sending response into a closed channel (id=Num(6)), original request likely timed out
2023-06-07T01:16:20.768 helix_lsp::transport [ERROR] <- ServerError(-32801): content modified
2023-06-07T01:16:20.768 helix_lsp::transport [ERROR] Tried sending response into a closed channel (id=Num(7)), original request likely timed out
2023-06-07T01:16:20.768 helix_lsp::transport [ERROR] <- ServerError(-32801): content modified
2023-06-07T01:16:20.768 helix_lsp::transport [ERROR] <- ServerError(-32801): content modified
2023-06-07T01:16:20.768 helix_lsp::transport [ERROR] <- ServerError(-32801): content modified
2023-06-07T01:16:20.768 helix_lsp::transport [ERROR] <- ServerError(-32801): content modified
2023-06-07T01:16:20.769 helix_lsp::transport [ERROR] <- ServerError(-32801): content modified
2023-06-07T01:16:20.769 helix_lsp::transport [ERROR] <- ServerError(-32801): content modified
2023-06-07T01:16:20.769 helix_lsp::transport [ERROR] <- ServerError(-32801): content modified
2023-06-07T01:16:20.769 helix_lsp::transport [ERROR] <- ServerError(-32801): content modified
2023-06-07T01:16:20.769 helix_lsp::transport [ERROR] <- ServerError(-32801): content modified
2023-06-07T01:16:20.772 helix_view::editor [ERROR] editor error: Async job failed: protocol error: ServerError(-32801): content modified
2023-06-07T01:16:20.777 helix_view::editor [ERROR] editor error: Async job failed: protocol error: ServerError(-32801): content modified
2023-06-07T01:16:20.780 helix_view::editor [ERROR] editor error: Async job failed: protocol error: ServerError(-32801): content modified
2023-06-07T01:16:20.783 helix_view::editor [ERROR] editor error: Async job failed: protocol error: ServerError(-32801): content modified
2023-06-07T01:16:20.787 helix_view::editor [ERROR] editor error: Async job failed: protocol error: ServerError(-32801): content modified
2023-06-07T01:16:20.790 helix_view::editor [ERROR] editor error: Async job failed: protocol error: ServerError(-32801): content modified
2023-06-07T01:16:20.793 helix_view::editor [ERROR] editor error: Async job failed: protocol error: ServerError(-32801): content modified
2023-06-07T01:16:20.795 helix_view::editor [ERROR] editor error: Async job failed: protocol error: ServerError(-32801): content modified
2023-06-07T01:16:20.798 helix_view::editor [ERROR] editor error: Async job failed: protocol error: ServerError(-32801): content modified
2023-06-07T01:17:08.426 helix_view::editor [ERROR] editor error: Async job failed: request 23 timed out
2023-06-07T01:17:11.179 helix_view::editor [ERROR] editor error: Async job failed: request 24 timed out
2023-06-07T01:17:12.599 helix_view::editor [ERROR] editor error: Async job failed: request 25 timed out
2023-06-07T01:17:18.150 helix_view::editor [ERROR] editor error: Async job failed: request 26 timed out
2023-06-07T01:17:18.574 helix_view::editor [ERROR] editor error: Async job failed: request 27 timed out
2023-06-07T01:17:25.342 helix_lsp::transport [ERROR] Tried sending response into a closed channel (id=Num(23)), original request likely timed out
2023-06-07T01:17:25.346 helix_lsp::transport [ERROR] Tried sending response into a closed channel (id=Num(24)), original request likely timed out
2023-06-07T01:17:25.351 helix_lsp::transport [ERROR] Tried sending response into a closed channel (id=Num(25)), original request likely timed out
2023-06-07T01:17:25.356 helix_lsp::transport [ERROR] Tried sending response into a closed channel (id=Num(26)), original request likely timed out
2023-06-07T01:17:25.361 helix_lsp::transport [ERROR] Tried sending response into a closed channel (id=Num(27)), original request likely timed out
2023-06-07T01:50:30.700 helix_view::editor [ERROR] Failed to initialize the LSP for `source.toml` { cannot find binary path }
2023-06-07T01:52:25.359 helix_view::editor [ERROR] Failed to initialize the LSP for `source.md` { cannot find binary path }
2023-06-07T02:01:04.547 helix_view::editor [ERROR] Failed to initialize the LSP for `source.md` { cannot find binary path }
2023-06-07T02:12:47.361 helix_view::editor [ERROR] editor error: file modified by an external process, use :w! to overwrite
2023-06-07T02:12:51.063 helix_view::editor [ERROR] editor error: file modified by an external process, use :w! to overwrite
2023-06-07T02:13:35.044 helix_view::editor [ERROR] editor error: file modified by an external process, use :w! to overwrite
2023-06-07T02:18:00.319 helix_view::editor [ERROR] editor error: file modified by an external process, use :w! to overwrite
2023-06-07T02:30:10.570 helix_view::editor [ERROR] editor error: file modified by an external process, use :w! to overwrite
2023-06-07T02:30:38.528 helix_view::editor [ERROR] editor error: no such command: 'W'
2023-06-07T02:34:38.134 helix_view::editor [ERROR] Failed to initialize the LSP for `source.md` { cannot find binary path }
2023-06-07T02:35:34.436 helix_view::editor [ERROR] Failed to initialize the LSP for `source.md` { cannot find binary path }
2023-06-07T02:37:52.456 helix_view::editor [ERROR] Failed to initialize the LSP for `source.md` { cannot find binary path }
2023-06-07T02:38:27.862 helix_view::editor [ERROR] Failed to initialize the LSP for `source.md` { cannot find binary path }
2023-06-07T02:39:12.887 helix_view::editor [ERROR] Failed to initialize the LSP for `source.md` { cannot find binary path }
2023-06-07T12:52:08.411 helix_view::editor [ERROR] Failed to initialize the LSP for `source.md` { cannot find binary path }
2023-06-07T12:54:27.109 helix_view::editor [ERROR] Failed to initialize the LSP for `source.md` { cannot find binary path }
2023-06-07T13:04:28.145 helix_view::clipboard::provider [DEBUG] No native clipboard provider found. Yanking by OSC 52 and pasting will be internal to Helix
2023-06-07T13:04:28.149 helix_tui::backend::crossterm [DEBUG] The keyboard enhancement protocol is not supported in this terminal (checked in 3.225575ms)
2023-06-07T13:04:28.149 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2023-06-07T13:04:28.547 helix_term::application [DEBUG] received editor event: IdleTimer
2023-06-07T13:04:29.652 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2023-06-07T13:04:29.933 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2023-06-07T13:04:30.051 helix_term::application [DEBUG] received editor event: IdleTimer
2023-06-07T13:04:30.051 helix_view::editor [ERROR] editor error: no such command: 'Q'
2023-06-07T13:04:30.052 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2023-06-07T13:04:30.821 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2023-06-07T13:04:31.015 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2023-06-07T13:04:31.222 helix_term::application [DEBUG] received editor event: IdleTimer
2023-06-07T13:04:31.605 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2023-06-07T13:04:31.988 helix_term::commands::typed [DEBUG] quitting...
2023-06-07T13:04:31.989 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2023-06-07T13:04:32.172 helix_term::commands::typed [DEBUG] quitting...
2023-06-07T13:04:32.172 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2023-06-07T13:04:32.172 helix_term::job [DEBUG] waiting on jobs...
2023-06-07T13:04:32.172 helix_term::job [DEBUG] waiting on jobs...
2023-06-07T13:04:36.549 helix_view::clipboard::provider [DEBUG] No native clipboard provider found. Yanking by OSC 52 and pasting will be internal to Helix
2023-06-07T13:04:36.736 helix_vcs [INFO] file is untracked
2023-06-07T13:04:36.736 helix_vcs [INFO] failed to open diff base for /home/admin/calmira/CABS/Ports/src/mkport/README.md
2023-06-07T13:04:36.737 helix_view::editor [ERROR] Failed to initialize the LSP for `source.md` { cannot find binary path }
2023-06-07T13:04:36.737 helix_view::editor [DEBUG] editor status: Loaded 1 file.
2023-06-07T13:04:36.748 helix_tui::backend::crossterm [DEBUG] The keyboard enhancement protocol is not supported in this terminal (checked in 10.557613ms)
2023-06-07T13:04:36.750 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2023-06-07T13:04:36.950 helix_term::application [DEBUG] received editor event: IdleTimer
2023-06-07T13:04:37.211 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2023-06-07T13:04:37.610 helix_term::application [DEBUG] received editor event: IdleTimer
2023-06-07T13:04:37.712 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2023-06-07T13:04:37.743 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2023-06-07T13:04:37.774 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2023-06-07T13:04:37.804 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2023-06-07T13:04:37.832 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2023-06-07T13:04:37.864 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2023-06-07T13:04:37.897 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2023-06-07T13:04:37.931 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2023-06-07T13:04:37.982 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2023-06-07T13:04:37.987 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2023-06-07T13:04:38.014 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2023-06-07T13:04:38.044 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2023-06-07T13:04:38.074 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2023-06-07T13:04:38.104 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2023-06-07T13:04:38.134 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2023-06-07T13:04:38.167 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2023-06-07T13:04:38.198 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2023-06-07T13:04:38.231 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2023-06-07T13:04:38.265 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2023-06-07T13:04:38.298 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2023-06-07T13:04:38.311 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2023-06-07T13:04:38.344 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2023-06-07T13:04:38.374 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2023-06-07T13:04:38.407 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2023-06-07T13:04:38.435 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2023-06-07T13:04:38.464 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2023-06-07T13:04:38.496 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2023-06-07T13:04:38.531 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2023-06-07T13:04:38.566 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2023-06-07T13:04:38.602 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2023-06-07T13:04:38.614 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2023-06-07T13:04:38.644 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2023-06-07T13:04:38.675 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2023-06-07T13:04:38.707 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2023-06-07T13:04:38.740 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2023-06-07T13:04:38.768 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2023-06-07T13:04:38.811 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2023-06-07T13:04:38.844 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2023-06-07T13:04:38.856 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2023-06-07T13:04:38.886 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2023-06-07T13:04:38.916 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2023-06-07T13:04:38.953 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2023-06-07T13:04:39.000 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2023-06-07T13:04:39.009 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2023-06-07T13:04:39.033 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2023-06-07T13:04:39.274 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2023-06-07T13:04:39.468 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2023-06-07T13:04:39.861 helix_term::application [DEBUG] received editor event: IdleTimer
2023-06-07T13:04:39.968 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2023-06-07T13:04:39.999 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2023-06-07T13:04:40.041 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2023-06-07T13:04:40.071 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2023-06-07T13:04:40.100 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2023-06-07T13:04:40.115 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2023-06-07T13:04:40.513 helix_term::application [DEBUG] received editor event: IdleTimer
2023-06-07T13:04:40.601 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2023-06-07T13:04:40.814 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2023-06-07T13:04:41.212 helix_term::application [DEBUG] received editor event: IdleTimer
2023-06-07T13:04:41.214 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2023-06-07T13:04:41.269 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2023-06-07T13:04:41.275 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2023-06-07T13:04:41.584 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2023-06-07T13:04:41.720 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2023-06-07T13:04:41.878 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2023-06-07T13:04:42.047 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2023-06-07T13:04:42.191 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2023-06-07T13:04:42.314 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2023-06-07T13:04:42.419 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2023-06-07T13:04:42.563 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2023-06-07T13:04:42.691 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2023-06-07T13:04:42.806 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2023-06-07T13:04:42.950 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2023-06-07T13:04:43.064 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2023-06-07T13:04:43.177 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2023-06-07T13:04:43.307 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2023-06-07T13:04:43.406 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2023-06-07T13:04:43.625 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2023-06-07T13:04:43.739 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2023-06-07T13:04:43.918 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2023-06-07T13:04:44.303 helix_term::application [DEBUG] received editor event: IdleTimer
2023-06-07T13:04:44.307 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2023-06-07T13:04:44.521 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2023-06-07T13:04:44.714 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2023-06-07T13:04:44.919 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2023-06-07T13:04:45.037 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2023-06-07T13:04:45.131 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2023-06-07T13:04:45.341 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2023-06-07T13:04:45.489 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2023-06-07T13:04:45.837 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2023-06-07T13:04:45.961 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2023-06-07T13:04:46.273 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2023-06-07T13:04:46.397 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
Platform
Linux
Terminal Emulator
GNOME Console 44.0
Helix Version
helix 23.05 (7f5940b)