Saving file on Nix-Shell deletes the contents of the file #7391
-
Summarywhen using helix in a nix-shell I am on nixos and I was originally using a
Reproduction Stepshttps://asciinema.org/a/QppILd1lo1uwpVtK0Lrd5jzjW I tried this:
I expected this to happen: Instead, this happened: Helix log~/.cache/helix/helix.log
PlatformLinux - NixOs Terminal EmulatorKitty and Alacritty Helix Versionhelix 23.05 (7f5940b) |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
What does the log file say when reproducing this in verbose mode? https://github.com/helix-editor/helix/wiki/FAQ#access-the-log-file You can run |
Beta Was this translation helpful? Give feedback.
-
This is in https://github.com/LegitCamper/my-spacetraders, right? I tried reproducing with that same file but didn't see it clear out the file. Do you have any custom config in |
Beta Was this translation helpful? Give feedback.
Ah yeah the line
formatter = { command = "cargo", args = ["clippy"]}
is problematic: that's piping files throughcargo clippy
on save, so the stdout output ofcargo clippy
replaces the document.