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

assertion failed: original_doc.len_chars() == self.len when using a keybinding to discard autocompletion menu #8131

Closed
MaxVerevkin opened this issue Aug 31, 2023 · 4 comments
Labels
C-bug Category: This is a bug

Comments

@MaxVerevkin
Copy link

Summary

Helix crashes with

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

Config:

[keys.insert]
C-x = ["normal_mode", "undo", "insert_mode"]

Reproduction Steps

  1. Create the keybinding mentioned above.
  2. Open a file with active lang server.
  3. Type something, trigger autocompletion, press tab to select something.
  4. Trigger the keybinding mentioned above.

Helix log

Github said it is too long. Let me know if the log would actually be useful.

Platform

Linux

Terminal Emulator

Kitty

Helix Version

helix 23.05 (48373d4)

@MaxVerevkin MaxVerevkin added the C-bug Category: This is a bug label Aug 31, 2023
@the-mikedavis
Copy link
Member

You should use C-c to cancel the completion

@MaxVerevkin
Copy link
Author

You should use C-c to cancel the completion

Thanks, that's exactly what I needed.

@pascalkuthe
Copy link
Member

It's kown issues that executing normal-mode commands (like undo) in insert-mode cab lead to crashes like this (especially with undo). The mdoe switch doesn't finish until after the entire command sequence has been finished.

Pretty sure there is an existing issue for that

@pascalkuthe
Copy link
Member

Duplicate of #3501

@pascalkuthe pascalkuthe marked this as a duplicate of #3501 Oct 19, 2023
@pascalkuthe pascalkuthe closed this as not planned Won't fix, can't repro, duplicate, stale Oct 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug
Projects
None yet
Development

No branches or pull requests

3 participants