Skip to content

watch stops on non-zero exit #13947

Open
Open
@1adept

Description

Describe the bug

0.98.0, non-zero exit codes are errors, broke the watch command, which aborts when the closure returns a non-zero exit code

How to reproduce

  1. Using the example: watch . --glob=**/*.rs {|| cargo test } to watch a rust project
  2. Save file with a failing test
  3. watch errors, aborting

Expected behavior

I expect watch to (at least have the option to) ignore errors / non-zero exit

Configuration

key value
version 0.98.0
major 0
minor 98
patch 0
branch
commit_hash
build_os linux-x86_64
build_target x86_64-unknown-linux-gnu
rust_version rustc 1.80.1 (3f5fd8dd4 2024-08-06) (built from a source tarball)
cargo_version cargo 1.80.0 (376290515 2024-07-16)
build_time 1980-01-01 00:00:00 +00:00
build_rust_channel release
allocator mimalloc
features default, sqlite, trash
installed_plugins

Metadata

Assignees

No one assigned

    Labels

    error-handlingHow errors in externals/nu code are caught or handled programmatically (see also unhelpful-error)needs-triageAn issue that hasn't had any proper look

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions