Output uncaught errors to stderr rather than stdout
Nobody has claimed this yet.
- Dominant language
- Lua
- Stars
- 613
- Forks
- 45
- PR merge metrics
- No merged PRs in 30d
Description
When using the yue CLI as an interpreter, it currently always pushes error tracebacks to /dev/stdout, when they should actually go to /dev/stderr. This will ensure that errors actually get displayed on the console, instead of being treated as regular output (e.g. when used in a shell pipeline).
Note that this is only relevant for uncaught errors that cause the interpreter to crash, not for errors handled with pcall / xpcall.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the YueScript CLI interpreter path and trace how uncaught error tracebacks are written when the interpreter crashes. Verify the behavior with a shell pipeline, then confirm that uncaught errors use stderr while errors handled through pcall or xpcall retain their existing behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- lua
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 45/100