Loss of Edited Content in Justfile When Auto-Formatting with Helix #13239
Unanswered
eli-yip
asked this question in
Troubleshooting
Replies: 2 comments
-
See #9703. External formatters work by passing the document to the formatter command as stdin and reading the formatted output as stdout and |
Beta Was this translation helpful? Give feedback.
0 replies
-
I've solved this problem, solution in #13287 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
When using Helix (versions
25.01.1 (01fce51c)
and25.01.1 (e7ac2fcd)
installed via Homebrew), edited content in ajustfile
is lost during automatic formatting under specific conditions.Reproduction Steps
The issue occurs with the following
languages.toml
configuration:Create a
justfile
with the following initial content:Open the
justfile
in Helix.Edit the file by adding new content, e.g.:
Run
:fmt
or:w
in Helix.Observe that the newly added content (
new-test
section) disappears, reverting the file to its original state:Expected Behavior: The edited content should persist after formatting or saving.
Actual Behavior: The newly added content is lost when
:fmt
or:w
is executed withauto-format = true
.Cases Where the Issue Does Not Occur:
auto-format
is set tofalse
inlanguages.toml
and:fmt
is executed manually.justfile
from scratch and formatting it, regardless of theauto-format
setting (true
orfalse
).Helix log
No response
Platform
macOS
Terminal Emulator
alacritty 0.15.1 (0c405d5)
Installation Method
source and brew
Helix Version
helix 25.01.1 (01fce51) helix 25.01.1 (e7ac2fc)(Homebrew)
Beta Was this translation helpful? Give feedback.
All reactions