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

LSP/ UI related crash (possibly for rust analyzer or something general) + One More #2588

Closed
zuixalias opened this issue May 28, 2022 · 4 comments
Labels
C-bug Category: This is a bug

Comments

@zuixalias
Copy link

zuixalias commented May 28, 2022

Summary

Finished building a rust project in windows terminal (in a panel alongside helix, which is a new instance of cmd i guess)...then went back to the rust file and pressed . key (it had default key binding), maybe without pressing any mouse button + was in normal mode and got a crash with this msg :

lsp_crash

Reproduction Steps

No response

Helix log

~/.cache/helix/helix.log
2022-05-27T19:41:31.363 helix_term::application [WARN] lsp position out of bounds - Diagnostic { range: Range { start: Position { line: 10, character: 4 }, end: Position { line: 10, character: 17 } }, severity: Some(Warning), code: Some(String("unused_imports")), code_description: None, source: Some("rustc"), message: "unused import: `nwg::NativeUi`\n`#[warn(unused_imports)]` on by default", related_information: None, tags: Some([Unnecessary]), data: None }
2022-05-27T19:44:04.267 helix_lsp::transport [ERROR] err: <- StreamClosed
2022-05-27T19:44:04.267 helix_lsp::transport [ERROR] err: <- StreamClosed
2022-05-27T22:32:56.797 helix_lsp::transport [ERROR] err: <- StreamClosed
2022-05-27T22:32:56.798 helix_lsp::transport [ERROR] err: <- StreamClosed
2022-05-27T23:16:50.712 helix_lsp::transport [ERROR] <- Server error: content modified

Platform

Windows

Terminal Emulator

Window Terminal 1.12.10983.0

Helix Version

helix 22.03 (d4e45fd)

@zuixalias zuixalias added the C-bug Category: This is a bug label May 28, 2022
@zuixalias zuixalias changed the title LSP crash (possibly for rust analyzer or something general) LSP/ UI related crash (possibly for rust analyzer or something general) May 28, 2022
@zuixalias
Copy link
Author

zuixalias commented May 28, 2022

I was typing and got another crash (log contains the same last msg as in the log posted above, two more times) :

crash2

@zuixalias zuixalias changed the title LSP/ UI related crash (possibly for rust analyzer or something general) LSP/ UI related crash (possibly for rust analyzer or something general) + One More May 28, 2022
@archseer
Copy link
Member

Please:

  • Copy paste your error rather than taking a screenshot so it's searchable
  • Reproduce the trace with RUST BACKTRACE=full as the output suggests
  • Open separate issues

The first issue is a duplicate of #2051 but I'd like to see a proper backtrace of the second one.

@zuixalias
Copy link
Author

zuixalias commented May 28, 2022

Oh no, i am really sorry, will make sure to copy the text next time onwards...and open issues separately too...

Btw i am unable to backtrace/ reproduce the second error, it had occurred randomly when i was typing...and from path in the error i can see that it is not related to what i was working on (could be a dependency of one of the dependencies that i was using...but i have checked and doesn't seem like it)

Having said that, i will make sure to try my best to reproduce asap and as accurately as possible if it happens again (and update here/ open an issue).

@archseer
Copy link
Member

I think the second issue is also a duplicate, we're getting a trace in #2616 (comment)

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

2 participants