Skip to content

Better error reporting when registering a plugin not named nu_plugin_xxx #8548

@dbrodie

Description

@dbrodie

Describe the bug

When registering a plugin not named nu_plugin_xxx the register command fails silently

How to reproduce

  1. register /full/path/some_nu_plugin

Expected behavior

An error saying plugin binary names must be nu_plugin_....

Screenshots

No response

Configuration

key value
version 0.76.0
branch
commit_hash
build_os macos-aarch64
build_target aarch64-apple-darwin
rust_version rustc 1.64.0 (a55dd71d5 2022-09-19)
rust_channel stable-aarch64-apple-darwin
cargo_version cargo 1.64.0 (387270bc7 2022-09-16)
pkg_version 0.76.0
build_time 2023-02-23 20:11:53 +02:00
build_rust_channel release
features database, default, trash, which, zip
installed_plugins nu-example-1, nu-example-2, nu-example-3, nu-viz

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    A:error-unhelpfulThe error message you observe is not helpful to identify the problemdeprecated:pr-pluginsDeprecated: use the A:plugins label instead

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions