Cannot save a file. #7303
Replies: 3 comments 2 replies
-
I just restarted the computer to ensure there were no other locks on the file and still have the same problem. Pretty strange. Is there an easy way to disable I also tried turning off the lsp server prior to saving and it didn't matter, it still would not save. |
Beta Was this translation helpful? Give feedback.
-
the diff gutter has likely nothing to do with the saving issues. That file is just large/your CPU is slow. The real problem is that your LSP SERVER crashed. Thelix runs autoformatting before saving so that's causing the save issuer and helix wii wait for all reverse to shutdown properly on exit(which a crashed server never can) so that's causing the freeze while quitting. I think older versions of pyright were buggy IIRC SO updating may help (or switching back to the default python LSP) |
Beta Was this translation helpful? Give feedback.
-
The file is a tiny script, and my i7 is an 11th gen, not yet 2 years old so not slow by most standards. It does make sense that the LSP would be the culprit, but that is also why I shut it down manually I will upgrade pyright and see, but I have also seen this with rust files where I needed to wait a while for a save and was confused it didn't and thought I had missed hitting enter or something. It's actually one of the reasons I recently pulled. I ran git bisect without any changes to
Which I suppose makes sense given that it is LSP related, still think it's weird it happens after manually turning off lsp and that it causes helix to freeze indefinitely (seemingly). Here is a video showing that even after using "undo" on the change it still cannot "quit" and needs to be force exited. I will try updating simplescreenrecorder-2023-06-09_13.23.13.mp4 |
Beta Was this translation helpful? Give feedback.
-
Summary
I have been running into an issue lately where the file will not save
[+]
. Usually its only for a second or so. Today its one file in particular that will not save and no matter how many times I kill helix and restart it I cannot save it. I freezes when I try to force quit:q!
as well.The only thing showing up in the log is something about
helix_vcs
with the diff computation timing out.The git gutter does show up when I delete a line as expected, it just can't save. And I can use
:reload
and the file comes back to what it originally was, reverting my edit.There are no other processes using this file.
Reproduction Steps
I tried this:
hx -v make_distribution.py
I expected to be able to edit and save the file.
Instead, this happened:
It will not save.
Helix log
~/.cache/helix/helix.log
Platform
Linux
Terminal Emulator
kitty
Helix Version
helix 23.05 (00b152f)
Beta Was this translation helpful? Give feedback.
All reactions