Skip to content

File not saved until quit, which hangs for a while #2570

Closed
@hazeycode

Description

@hazeycode

Summary

Fairly frequently, :w can fail with Async Error: request timed out, other times no message is observed.
The current file will not be written until the program is quit using :q where then the program hangs for a couple of minutes before finally writing the file and exiting.

Part of the problem appears to be that the language server I am using is failing. Helix does not deal with this situation gracefully.

Reproduction Steps

As described.

I would expect that language server errors are reported promptly to the user and that they interfere with file writing operations minimally.

Helix log

2022-05-25T15:10:47.749 helix_lsp::transport [ERROR] err: <- IO(Os { code: 32, kind: BrokenPipe, message: "Broken pipe" })
2022-05-25T15:11:07.750 helix_view::document [WARN] LSP formatting failed: request timed out
2022-05-25T15:11:07.750 helix_lsp::transport [ERROR] err: <- IO(Os { code: 32, kind: BrokenPipe, message: "Broken pipe" })
2022-05-25T15:11:08.252 helix_term::application [ERROR] Timed out waiting for language servers to shutdown

Platform

Linux

Terminal Emulator

kitty 0.23.1

Helix Version

helix 0.5.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions