-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
File not saved until quit, which hangs for a while #2570
Comments
Can give me the file, the ls you are using and your config please 🙏🏻 |
zls is the LS i'm using. My config file, very simple: theme = "gruvbox"
[editor]
line-number = "absolute"
auto-completion = true
true-color = true As for a particular file, I've observed the issue with any .zig file. |
Similar but I think a different issue overall: #2059 It looks like the formatting callback is timing out because the language server crashed (hence the "broken pipe"). I'm not sure there's any handling of crashing language servers at the moment. |
Reproducible with |
This was fixed in #4797 |
Summary
Fairly frequently,
:w
can fail withAsync 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
Platform
Linux
Terminal Emulator
kitty 0.23.1
Helix Version
helix 0.5.0
The text was updated successfully, but these errors were encountered: