Long delays in saving files in Helix and many errors in the Helix log
Code editor
Helix
Platform
Linux
Version
5.3.3
What steps will reproduce the bug?
Often I am editing a bash file in Helix and there is a long delay when saving a file. It take 5+ seconds to save. When I look at the log it is full of errors, I will upload a selection.
Simply try to save this file caused it last, but it is intermittent and happens often when editing bash files in Helix.
#!/bin/bash
# wl-copy
# cat - l~/Downloads/texttest
ansi2html | tee ~/Downloads/texttest4.html
Could it be that I am running multiple copies of Helix with bash files? I don't know, I have not had this problem with any other language server. I have shfmt installed and maybe this is involved:
2024-11-27T15:28:27.736 helix_view::document [WARN] LSP formatting failed: request 5 timed out
2024-11-27T15:28:27.747 helix_lsp::transport [ERROR] bash-language-server err: <- IO(Os { code: 32, kind: BrokenPipe, message: "Broken pipe" })
How often does it reproduce? Is there a required condition?
Often
What is the expected behavior?
Saves instantly.
What do you see instead?
Very long delay in file saving.
Additional information
$ node --version
v18.19.0
@David-Else Are you still seeing this issue? Do you/did you see it with other language servers too?
Based upon the logs you sent, it looks like Node.js is repeatedly running out of memory. The cause of that is unclear. It could be something to do with the language server, or it could be the way Helix is managing it.