nushell / nufmt

MIT License
64 stars 8 forks source link

clear `example.nu` (resolves #23) #24

Closed AucaCoyan closed 1 year ago

AucaCoyan commented 1 year ago

I deleted a bunch of commands that VS Code threw me a warning.

In the process, I realized there are a couple of issues in other parts of nushell:

fdncred commented 1 year ago
amtoine commented 1 year ago

i get the following

Error: nu::shell::external_command

  × External command failed
    ╭─[/home/amtoine/.local/share/git/store/github.com/amtoine/nufmt/benches/example.nu:54:1]
 54 │
 55 │ 2 | bits and 2
    ·     ──┬─
    ·       ╰── executable was not found
 56 │ [4 3 2] | bits and 2
    ╰────
  help: No such file or directory (os error 2)

because the bits commands have been removed from the default feature of nu and now live in extra :thinking:

AucaCoyan commented 1 year ago

It's better to make a new file I guess. Because example.nu is script-generated, we shouldn't assume it will be constant over time. I would rather create another file. What do you think? The PR is available to re-open 👍🏼