You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Agreed. This is why the readme says, This project is still very much in beta. Expect bugs, inconsistent behavior. Do not use in productive nushell scripts! I wouldn't even call it alpha or beta. It's very premature. We're looking for people to come along side us and work on it.
Describe the bug
nufmt
corrupts the code.nufmt
inserts a line break at the start of the file if no shebang is present.Steps To Reproduce
$ touch test.nu ; chmod +x test.nu
$ cargo install --git https://github.com/nushell/nufmt
$ ~/.cargo/bin/nufmt test.nu
Result
(Note: I had to insert space for line breaks to be shown with Gitbub Markdown)
Executing
nufmt
again results in:Expected behavior
Formatted code with a consistent structure, even across subsequent runs
Environment
Arch Linux
The text was updated successfully, but these errors were encountered: