Skip to content

bug: Nushell's get --ignore-errors flag is deprecated. #2156

@rbuchberger

Description

@rbuchberger

Describe the Bug

Currently nushell users on v0.106.0 or later who have set up completions get a warning every time they open a new shell:

Warning: nu::parser::deprecated

  ⚠ Flag deprecated.
    ╭─[/home/robert/.asdf/completions/nushell.nu:98:33]
 97 │                             where enabled |
 98 │                             get --ignore-errors template |
    ·                                 ───────┬───────
    ·                                        ╰── get --ignore-errors was deprecated in 0.106.0 and will be removed in a future release.
 99 │                             str join '' |
    ╰────
  help: This flag has been renamed to `--optional (-o)` to better reflect its behavior.

Steps to Reproduce

  1. Install nushell v0.106.0 or later.
  2. Follow setup instructions, including completions
  3. Open a new shell prompt.

Expected Behaviour

No deprecation warning.

Actual Behaviour

Deprecation warning.

Environment

❯ asdf info
OS:
Linux charybdis 6.15.8-zen1-1-zen #1 ZEN SMP PREEMPT_DYNAMIC Thu, 24 Jul 2025 18:17:55 +0000 x86_64 GNU/Linux

SHELL:
0.106.0

BASH VERSION:
5.3.3(1)-release

ASDF VERSION:
0.18.0-arch (revision unknown)

ASDF INTERNAL VARIABLES:
ASDF_TOOL_VERSIONS_FILENAME=.tool-versions
ASDF_DATA_DIR=/home/robert/.asdf
ASDF_CONFIG_FILE=/home/robert/.asdfrc

ASDF INSTALLED PLUGINS:
nodejs    https://github.com/asdf-vm/asdf-nodejs.git
          93bd217ba74f05080eebb7d8e1c146a385b01d7f
pnpm      https://github.com/jonathanmorley/asdf-pnpm.git
          032ae1a9c3f59f87af20ed00da0b873e1322173e
python    https://github.com/danhper/asdf-python.git
          d4caa7d4832313b4c141ee0ceca4118747147e89
ruby      https://github.com/asdf-vm/asdf-ruby.git
          3062b6c559206b955b2ff30a37f5a77c7757cd07

~

asdf plugins affected (if relevant)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions