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 ajustfileis lost during automatic formatting under specific conditions.Reproduction Steps
The issue occurs with the following
languages.tomlconfiguration:Create a
justfilewith the following initial content:Open the
justfilein Helix.Edit the file by adding new content, e.g.:
Run
:fmtor:win Helix.Observe that the newly added content (
new-testsection) 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
:fmtor:wis executed withauto-format = true.Cases Where the Issue Does Not Occur:
auto-formatis set tofalseinlanguages.tomland:fmtis executed manually.justfilefrom scratch and formatting it, regardless of theauto-formatsetting (trueorfalse).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