Skip to content
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

Panic original_doc.len_chars() == self.len #1410

Closed
wucke13 opened this issue Dec 30, 2021 · 5 comments
Closed

Panic original_doc.len_chars() == self.len #1410

wucke13 opened this issue Dec 30, 2021 · 5 comments
Labels
A-helix-term Area: Helix term improvements C-bug Category: This is a bug

Comments

@wucke13
Copy link

wucke13 commented Dec 30, 2021

I got the following during editing Rust code, I only recall having pressed u multiple times to revert changes.

thread 'main' panicked at 'assertion failed: original_doc.len_chars() == self.len', helix-core/src/transaction.rs:275:9

I'm using helix 0.5.0

@kirawi kirawi added A-helix-term Area: Helix term improvements C-bug Category: This is a bug labels Dec 31, 2021
@pickfire
Copy link
Contributor

I think we can't really do much here if there is no stack trace or step to reproduce, should it be closed?

@archseer
Copy link
Member

archseer commented Mar 9, 2022

Needs more info

@archseer archseer closed this as completed Mar 9, 2022
@wucke13
Copy link
Author

wucke13 commented Mar 13, 2022

I haven't encountered this since, so unfortunately I can't provide more info other than that the given source code line assumes an invariant which is untrue in some circumstances

@TripleDogDare
Copy link

TripleDogDare commented Oct 17, 2022

I just encountered this bug. Also without backtrace enabled and unfortunately I haven't been able to reproduce it.

$ hx --version
helix 22.08.1 (66276ce6)
thread 'main' panicked at 'assertion failed: original_doc.len_chars() == self.len', helix-core/src/transaction.rs:265:9

I had just performed a clipboard-paste-after followed by u.

Edit: Unlikely to be useful, but here's some more system info.

$ uname -rvmos
Linux 5.18.0-0.bpo.1-amd64 #1 SMP PREEMPT_DYNAMIC Debian 5.18.2-1~bpo11+1 (2022-06-14) x86_64 GNU/Linux

@DuckDuckWhale
Copy link
Contributor

DuckDuckWhale commented Jan 16, 2023

Also just encountered this and don't have a reproduction after a middle click paste and an undo:

thread 'main' panicked at 'assertion failed: original_doc.len_chars() == self.len', helix-core/src/transaction.rs:265:9
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
$ hx --version
helix 22.12 (96ff64a8)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-helix-term Area: Helix term improvements C-bug Category: This is a bug
Projects
None yet
Development

No branches or pull requests

6 participants