Closed pickfire closed 3 years ago
Could it be unicode issues still? The document length doesn't match the transaction
Probably no since this part of source code (picker.rs) shouldn't have any unicode. I was using debug mode.
Does this still happen?
No, let me close it.
Reproduction steps
I was editing helix code itself but panics suddenly. I don't remember which edit am I doing but I face this a few times. ``` thread 'main' panicked at 'assertion failed: self.len_after == other.len', helix-core/src/transaction.rs:128:9 stack backtrace: 0: rust_begin_unwind at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/std/src/panicking.rs:493:5 1: core::panicking::panic_fmt at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/core/src/panicking.rs:92:14 2: core::panicking::panic at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/core/src/panicking.rs:50:5 3: helix_core::transaction::ChangeSet::compose at ./helix-core/src/transaction.rs:128:9 4: helix_view::document::Document::apply::{{closure}} at ./helix-view/src/document.rs:385:17 5: helix_view::document::take_with::{{closure}} at ./helix-view/src/document.rs:89:68 6:~/.cache/helix/helix.log
``` 2021-06-12T17:54:21.393 helix_lsp::transport [ERROR] <- Server error: content modified 2021-06-12T18:20:28.659 helix_lsp::transport [ERROR] <- Server error: content modified 2021-06-12T18:20:45.081 helix_term::ui::markdown [WARN] code Borrowed("KeyEvent::F(1)") 2021-06-12T18:20:45.231 helix_term::ui::markdown [WARN] code Borrowed("KeyEvent::Char(\'c\')") 2021-06-12T18:20:45.231 helix_term::ui::markdown [WARN] code Borrowed("c") 2021-06-12T18:20:45.884 helix_term::ui::markdown [WARN] code Borrowed("self") 2021-06-12T18:20:45.884 helix_term::ui::markdown [WARN] code Borrowed("other") 2021-06-12T18:20:45.884 helix_term::ui::markdown [WARN] code Borrowed("==") 2021-06-12T18:20:46.089 helix_term::ui::markdown [WARN] code Borrowed("!=") 2021-06-12T18:20:46.223 helix_term::ui::markdown [WARN] code Borrowed("self") 2021-06-12T18:20:46.224 helix_term::ui::markdown [WARN] code Borrowed("other") 2021-06-12T18:20:46.369 helix_term::ui::markdown [WARN] code Borrowed("self") 2021-06-12T18:20:46.369 helix_term::ui::markdown [WARN] code Borrowed("other") 2021-06-12T18:20:46.369 helix_term::ui::markdown [WARN] code Borrowed("<") 2021-06-12T18:20:46.516 helix_term::ui::markdown [WARN] code Borrowed("self") 2021-06-12T18:20:46.516 helix_term::ui::markdown [WARN] code Borrowed("other") 2021-06-12T18:20:46.516 helix_term::ui::markdown [WARN] code Borrowed("<=") 2021-06-12T18:20:46.724 helix_term::ui::markdown [WARN] code Borrowed("self") 2021-06-12T18:20:46.724 helix_term::ui::markdown [WARN] code Borrowed("other") 2021-06-12T18:20:46.724 helix_term::ui::markdown [WARN] code Borrowed(">") 2021-06-12T18:20:46.833 helix_term::ui::markdown [WARN] code Borrowed("self") 2021-06-12T18:20:46.833 helix_term::ui::markdown [WARN] code Borrowed("other") 2021-06-12T18:20:46.833 helix_term::ui::markdown [WARN] code Borrowed(">=") 2021-06-12T18:20:47.263 helix_term::ui::markdown [WARN] code Borrowed("self") 2021-06-12T18:20:47.263 helix_term::ui::markdown [WARN] code Borrowed("other") 2021-06-12T18:20:47.263 helix_term::ui::markdown [WARN] code Borrowed(">=") 2021-06-12T18:20:47.409 helix_term::ui::markdown [WARN] code Borrowed("self") 2021-06-12T18:20:47.409 helix_term::ui::markdown [WARN] code Borrowed("other") 2021-06-12T18:20:47.409 helix_term::ui::markdown [WARN] code Borrowed(">") 2021-06-12T18:20:47.449 helix_term::ui::markdown [WARN] code Borrowed("self") 2021-06-12T18:20:47.450 helix_term::ui::markdown [WARN] code Borrowed("other") 2021-06-12T18:20:47.450 helix_term::ui::markdown [WARN] code Borrowed("<=") 2021-06-12T18:20:47.490 helix_term::ui::markdown [WARN] code Borrowed("self") 2021-06-12T18:20:47.490 helix_term::ui::markdown [WARN] code Borrowed("other") 2021-06-12T18:20:47.490 helix_term::ui::markdown [WARN] code Borrowed("<") 2021-06-12T18:20:47.532 helix_term::ui::markdown [WARN] code Borrowed("self") 2021-06-12T18:20:47.532 helix_term::ui::markdown [WARN] code Borrowed("other") 2021-06-12T18:20:47.573 helix_term::ui::markdown [WARN] code Borrowed("!=") 2021-06-12T18:20:47.612 helix_term::ui::markdown [WARN] code Borrowed("self") 2021-06-12T18:20:47.612 helix_term::ui::markdown [WARN] code Borrowed("other") 2021-06-12T18:20:47.612 helix_term::ui::markdown [WARN] code Borrowed("==") 2021-06-12T18:20:48.007 helix_term::ui::markdown [WARN] code Borrowed("KeyEvent::Char(\'c\')") 2021-06-12T18:20:48.007 helix_term::ui::markdown [WARN] code Borrowed("c") 2021-06-12T18:20:48.175 helix_term::ui::markdown [WARN] code Borrowed("KeyEvent::F(1)") 2021-06-12T18:30:37.727 helix_lsp::transport [ERROR] <- Server error: content modified 2021-06-12T18:30:58.381 helix_term::ui::picker [ERROR] [122, 0, 3, 39, 43, 62, 85, 93, 99, 106, 119, 124, 131, 133, 135, 137, 146, 47] 2021-06-12T19:24:10.358 helix_lsp::transport [ERROR] <- Server error: content modified 2021-06-12T19:24:11.844 helix_lsp::transport [ERROR] <- Server error: content modified 2021-06-12T19:24:17.690 helix_lsp::transport [ERROR] <- Server error: content modified 2021-06-12T19:24:19.773 helix_lsp::transport [ERROR] <- Server error: content modified 2021-06-12T19:29:52.872 helix_lsp::transport [ERROR] <- Server error: content modified 2021-06-12T19:30:48.192 helix_lsp::transport [ERROR] <- Server error: content modified 2021-06-12T19:34:05.313 helix_lsp::transport [ERROR] <- Server error: content modified 2021-06-12T19:38:12.682 helix_lsp::transport [ERROR] <- Server error: content modified 2021-06-12T19:38:12.682 helix_lsp::transport [ERROR] <- Server error: content modified 2021-06-12T19:39:10.505 helix_lsp::transport [ERROR] <- Server error: content modified ```