Panic reports should be good #64

Closed
opened 2025-07-02 17:00:38 +00:00 by scott · 3 comments
Owner

Panic reports should be good! That means close parity with Janet-Ludus. Tracebacks are now possible, provide those. Line numbers are good, actual tokens will be harder to come by without a more substantial refactoring of parsing.

  • Panics should include the line number where they fail
  • Panics should have tracebacks that include line numbers and locations of callsites in parent stack frames
  • Match errors must report failing patterns for let and function-call match failures
  • Match errors should, if possible, report failing patterns for match forms
Panic reports should be good! That means close parity with Janet-Ludus. Tracebacks are now possible, provide those. Line numbers are good, actual tokens will be harder to come by without a more substantial refactoring of parsing. * [x] Panics should include the line number where they fail * [x] Panics should have tracebacks that include line numbers and locations of callsites in parent stack frames * [x] Match errors must report failing patterns for `let` and function-call match failures * [ ] Match errors should, if possible, report failing patterns for `match` forms
scott added the
errors
label 2025-07-02 17:00:44 +00:00
scott added this to the Core: CC2 milestone 2025-07-02 17:15:25 +00:00
Author
Owner

Where we are right now may as good as we get for CC2. Not the worst? We can live with this.

Where we are right now may as good as we get for CC2. Not the worst? We can live with this.
scott modified the milestone from Core: CC2 to Expanded: CC2 2025-07-04 20:18:17 +00:00
scott modified the milestone from Expanded: CC2 to Core: CC2 2025-07-06 06:05:24 +00:00
Author
Owner

Right now tracebacks aren't doing what I need them to. Hmmm.

Right now tracebacks aren't doing what I need them to. Hmmm.
Author
Owner

This is as good as it's going to get for now. ::sigh:: 6eb28888ca

This is as good as it's going to get for now. ::sigh:: https://alea.ludus.dev/twc/rudus/commit/6eb28888ca7243625e51193db83df318e4223750
scott closed this issue 2025-07-06 22:28:18 +00:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: twc/ludus#64
No description provided.