nushell / nushell/nushell

A typing error in a `tee` block reports `Other error` at unrelated codepoint.

Open
#16,733 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

A:error-handling A:error-unhelpful status:needs-triage
Dominant language
Rust
Stars
40.5k
Forks
2.3k
Avg merge
1d 14h
Merged PRs (30d)
79

Description

Bug report form
  • I have done a basic search of the issue tracker to find any existing issues that are similar.
  • I have checked that my version is at least the latest stable release available via my installation method.
Describe the bug

When a command is called with the wrong input type in a tee block, the reported error is misleading

How to reproduce
  1. Run
echo ho | tee { insert hi 5 }
  1. You'll see the error
Image

which reports Other error instead of type error and reports in on the echo command instead of in the tee block.

Expected behavior

I expected nu to print the same error as if I had run just

echo ho | insert hi 5

which yields

Image

and reports the correct codepoint for the error.

Configuration
key value
version 0.106.1
major 0
minor 106
patch 1
branch
commit_hash
build_os linux-x86_64
build_target x86_64-unknown-linux-gnu
rust_version rustc 1.88.0 (6b00bc388 2025-06-23) (built from a source tarball)
cargo_version cargo 1.88.0 (873a06493 2025-05-10)
build_time 1980-01-01 00:00:00 +00:00
build_rust_channel release
allocator standard
features default, plugin, rustls-tls, sqlite, trash-support
installed_plugins query 0.100.0
experimental_options example=false, reorder-cell-paths=false

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue with echo ho | tee { insert hi 5 }, then compare its error path with echo ho | insert hi 5. Trace how the tee block propagates the type error and source location; done means the command reports a type error at the failing expression in the block, matching the direct insert behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.