Skip to content

make_docs.nu does not take kindly to being run without plugins installed #2010

@ItsHarper

Description

@ItsHarper

Here's the abbreviated error output. In reality, I had to use head (forgive me for not having the nu equivalent memorized yet 😆) to capture the start of the error, because it was so long that it filled my terminal's buffer.

> nu make_docs.nu
Error: nu::shell::io::not_found

  × Not found
  help: '/usr/bin/nu_plugin_inc' does not exist

Error: nu::shell::unsupported_input

  x Unsupported input
     ,-[/home/harper/nushell.github.io/make_docs.nu:446:11]
 445 |         scope commands
 446 |         | join (command-names) name
     :           ^^|^|
     :             | `-- (List { vals: [Record { val: Record { inner: [("name", String { val: "alias", internal_span: Span { start: 144140, end: 144154 } }), 

<It goes on like this for ~forever>

144138, end: 144152 } }], internal_span: Span { start: 144138, end: 144152 } }, Nothing, String String)
     ·             ╰── (PipelineData<table>, table, string, string)
 447 │         | sort-by category
     ╰────

Error: nu::shell::non_zero_exit_code

  × External command had a non-zero exit code
   ╭─[entry #36:1:1]
 1 │ nu make_docs.nu
   · ─┬
   ·  ╰── exited with code 1
   ╰────

I see there's code that attempts to print a nice error in this case, but it's clearly not working.

It does behave much better when using the wrapper (though even that doesn't display the error message written in the script):

> source make_docs.nu
> make_docs
Error: nu::shell::io::not_found

  x Not found
  help: '/usr/bin/nu_plugin_inc' does not exist

Error: nu::shell::non_zero_exit_code

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