alecthomas / alecthomas/t

Trying to select from a number panics in interactive mode

Open
#16 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
260
Forks
7
PR merge metrics
No merged PRs in 30d

Description

Running:
```sh
echo 123 > file
t -i file
# type "n@0"
```
causes `t` to crash with the message: `panicked at src/interpreter.rs:83:19: context should have root value`.

Just running `t n@0 file` normally, yields `Error: cannot select from number`.

It would be great if that error could just be displayed instead of crashing :)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.