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 after using LSP goto definition action #11919

Closed
Bowarc opened this issue Oct 19, 2024 · 5 comments
Closed

Panic after using LSP goto definition action #11919

Bowarc opened this issue Oct 19, 2024 · 5 comments
Labels
C-bug Category: This is a bug

Comments

@Bowarc
Copy link

Bowarc commented Oct 19, 2024

Summary

Tried using Rust lsp goto definition action and it panic'd with message:

thread 'main' panicked at helix-core\src\transaction.rs:483:9:
Positions [(11137, After), (11138, Before)] are out of range for changeset len 11108!
stack backtrace:
   0:     0x7ff615d7d6f8 - <unknown>
   1:     0x7ff614ec7a59 - <unknown>
   2:     0x7ff615d780a1 - <unknown>
   3:     0x7ff615d7d4d6 - <unknown>
   4:     0x7ff615d80ff8 - <unknown>
   5:     0x7ff615d80c67 - <unknown>
   6:     0x7ff615d81557 - <unknown>
   7:     0x7ff615d813e7 - <unknown>
   8:     0x7ff615d7e08f - <unknown>
   9:     0x7ff615d81098 - <unknown>
  10:     0x7ff615e6c104 - <unknown>
  11:     0x7ff6151d0c88 - <unknown>
  12:     0x7ff6151a788b - <unknown>
  13:     0x7ff6159f3479 - <unknown>
  14:     0x7ff615abd310 - <unknown>
  15:     0x7ff615aa1d5f - <unknown>
  16:     0x7ff615aa3924 - <unknown>
  17:     0x7ff615501509 - <unknown>
  18:     0x7ff6155013e3 - <unknown>
  19:     0x7ff615505f25 - <unknown>
  20:     0x7ff61568a720 - <unknown>
  21:     0x7ff6156cffb2 - <unknown>
  22:     0x7ff615b02ef9 - <unknown>
  23:     0x7ff615aff559 - <unknown>
  24:     0x7ff615b6fa51 - <unknown>
  25:     0x7ff615ba8587 - <unknown>
  26:     0x7ff615bbc5eb - <unknown>
  27:     0x7ff615b7e886 - <unknown>
  28:     0x7ff615b96210 - <unknown>
  29:     0x7ff615d70fbe - <unknown>
  30:     0x7ff615bbc78c - <unknown>
  31:     0x7ff615e6604c - <unknown>
  32:     0x7ffb5deb7374 - BaseThreadInitThunk
  33:     0x7ffb5e93cc91 - RtlUserThreadStart

Reproduction Steps

Can't reproduce

Helix log

Not very useful imo but here they are:

~/.cache/helix/helix.log
2024-10-19T16:10:55.579 helix_lsp::transport [ERROR] rust-analyzer err <- "2024-10-19T14:10:55.557220Z ERROR hir_ty::diagnostics::match_check::pat_analysis: trying to compare incompatible constructors Struct and Variant(EnumVariantContiguousIndex(1))\n"
2024-10-19T16:11:30.229 helix_lsp::transport [ERROR] rust-analyzer err <- "2024-10-19T14:11:30.229633Z ERROR hir_ty::diagnostics::match_check::pat_analysis: trying to compare incompatible constructors Struct and Variant(EnumVariantContiguousIndex(1))\n"
2024-10-19T16:12:44.122 helix_view::document [ERROR] Failed to copy metadata on write: The operation completed successfully. (os error 0)
2024-10-19T16:13:24.840 helix_lsp::transport [ERROR] rust-analyzer err: <- StreamClosed

Platform

Windows 10

Terminal Emulator

Windows terminal(portable) 1.21

Installation Method

Scoop

Helix Version

helix 24.7 (079f544)

@Bowarc Bowarc added the C-bug Category: This is a bug label Oct 19, 2024
@TornaxO7
Copy link
Contributor

Is it possible to post the source code which you used?

@RoloEdits
Copy link
Contributor

This might have been fixed in #11304, if you are able to build from source on or after this commit then it would be helpful in seeing if this is so.

@Bowarc
Copy link
Author

Bowarc commented Oct 28, 2024

Is it possible to post the source code which you used?

Im sorry i don't have it anymore :c

@Bowarc
Copy link
Author

Bowarc commented Oct 28, 2024

This might have been fixed in #11304, if you are able to build from source on or after this commit then it would be helpful in seeing if this is so.

Ok thank you !

@pascalkuthe
Copy link
Member

Without reproduction case thisnis not actionable

@helix-editor helix-editor locked and limited conversation to collaborators Oct 28, 2024
@pascalkuthe pascalkuthe converted this issue into discussion #11955 Oct 28, 2024

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

4 participants