Bug with saving
Open
Nobody has claimed this yet.
bug
- Dominant language
- Rust
- Stars
- 230
- Forks
- 40
- Avg merge
- 15h 30m
- Merged PRs (30d)
- 1
Description
Hi, very weird bug here. Saving the output with nufmt ./a.nu | save -f a.nu results in an empty file, but nufmt ./a.nu | lines | str join "\n" | save -f ./a.nu works fine for some reason.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the exact nufmt ./a.nu | save -f a.nu pipeline and compare it with the working lines | str join "\n" variant. Trace how nufmt output is passed to Nushell's save command and determine why the direct pipeline creates an empty file. Done means saving formatted output directly produces the expected non-empty file.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100