Skip to content

[Nightly] Can't use parser keyword run as command name. #116

Closed

Description

@Paul-16098

nushell/nushell#18662

Error: nu::parser::name_is_keyword

  × Can't use parser keyword `run` as command name.
    ╭─[C:\Users\xxx\.config\nushell\nupm\modules\numd\commands.nu:19:12]
 16 │ @example "preview which blocks would execute, without running them" {
 17 │     numd run --dry-run README.md
 18 │ }
 19 │ export def run [
    ·            ─┬─
    ·             ╰── 'run' is a parser keyword
 20 │     file: path # path to a `.md` file containing Nushell code to be executed
 21 │     --dry-run # return blocks that would execute (block_index, infostring, code) without executing anything
 22 │     --echo # output resulting markdown to stdout instead of saving to file
    ╰────
  help: Parser keywords cannot be shadowed (including via module exports and `use *`). Choose a different command name so language constructs
        keep working.

Activity

  1. maxim-uvarov commented on Aug 17, 2026

    @maxim-uvarov
    Member

    sorry for the late response

    53c2d50 should be fixed now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions