Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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 at main thread #8828

Closed
Streppel opened this issue Nov 16, 2023 · 0 comments
Closed

Panic at main thread #8828

Streppel opened this issue Nov 16, 2023 · 0 comments
Labels
C-bug Category: This is a bug

Comments

@Streppel
Copy link

Summary

Left a file with :q! and the got the following output

thread 'main' panicked at helix-core/src/transaction.rs:461:9:
Positions [(3653, After), (3654, Before)] are out of range for changeset len 3613!

Reproduction Steps

Unfortunately I'm unable to reproduce it. I can't remember what I did exactly with the file as I left the editor hours ago before closing it. Feel free to close this issue if this is non-helpful.

Helix log

~/.cache/helix/helix.log
2023-11-16T09:52:35.957 helix_view::editor [ERROR] editor error: 1 unsaved buffer(s) remaining: ["exercises/070_comptime5.zig"]
2023-11-16T09:52:40.220 helix_lsp::transport [ERROR] zls err: <- StreamClosed
2023-11-16T09:52:54.443 helix_lsp::transport [ERROR] zls err <- "info : ( main ): Starting ZLS 0.11.0 @ '/usr/bin/zls'\n"
2023-11-16T09:52:54.443 helix_lsp::transport [ERROR] zls err <- "info : ( main ): No config file zls.json found.\n"
2023-11-16T09:52:54.443 helix_lsp::transport [ERROR] zls err <- "info : (config): Using zig executable '/usr/bin/zig'\n"
2023-11-16T09:52:54.465 helix_lsp::transport [ERROR] zls err <- "info : (config): Using zig lib path '/usr/lib/zig'\n"
2023-11-16T09:52:54.465 helix_lsp::transport [ERROR] zls err <- "info : (config): Using build runner global cache path '/home/natans/.cache/zig'\n"
2023-11-16T09:52:54.465 helix_lsp::transport [ERROR] zls err <- "info : (config): Detected runtime zig version: '0.11.0'\n"
2023-11-16T09:52:54.465 helix_lsp::transport [ERROR] zls err <- "info : (server): client is 'helix-23.10'\n"
2023-11-16T09:52:54.465 helix_lsp::transport [ERROR] zls err <- "info : (server): zls initializing\n"
2023-11-16T09:52:54.465 helix_lsp::transport [ERROR] zls err <- "info : (server): Server.ClientCapabilities{ .supports_snippets = true, .supports_apply_edits = true, .supports_will_save = false, .supports_will_save_wait_until = false, .supports_publish_diagnostics = true, .supports_code_action_fixall = false, .hover_supports_md = true, .completion_doc_supports_md = false, .label_details_support = false, .supports_configuration = true, .supports_workspace_did_change_configuration_dynamic_registration = false, .supports_textDocument_definition_linkSupport = false }\n"
2023-11-16T09:52:54.465 helix_lsp::transport [ERROR] zls err <- "info : (server): Using offset encoding: utf-8\n"
2023-11-16T09:52:54.500 helix_lsp::transport [ERROR] zls err <- "info : (server): Setting configuration...\n"
2023-11-16T09:52:54.500 helix_lsp::transport [ERROR] zls err <- "info : (config): Using zig executable '/usr/bin/zig'\n"
2023-11-16T09:52:54.520 helix_lsp::transport [ERROR] zls err <- "info : (config): Using zig lib path '/usr/lib/zig'\n"
2023-11-16T09:52:54.520 helix_lsp::transport [ERROR] zls err <- "info : (config): Using build runner global cache path '/home/natans/.cache/zig'\n"
2023-11-16T09:52:54.520 helix_lsp::transport [ERROR] zls err <- "info : (config): Detected runtime zig version: '0.11.0'\n"
2023-11-16T09:52:55.480 helix_lsp::transport [ERROR] err: <- Other(failed to send a message to server

Caused by:
    channel closed)
2023-11-16T09:52:55.480 helix_lsp::transport [ERROR] zls err: <- StreamClosed

Platform

6.5.9-arch2-1 #1 SMP PREEMPT_DYNAMIC Thu, 26 Oct 2023 00:52:20 +0000 x86_64 GNU/Linux

Terminal Emulator

kitty 0.31.0

Installation Method

pacman

Helix Version

23.10

@Streppel Streppel added the C-bug Category: This is a bug label Nov 16, 2023
@helix-editor helix-editor locked and limited conversation to collaborators Nov 16, 2023
@the-mikedavis the-mikedavis converted this issue into discussion #8829 Nov 16, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
C-bug Category: This is a bug
Projects
None yet
Development

No branches or pull requests

1 participant