Improve diagnostics #5

Merged
wmedrano merged 16 commits from wmedrano into main 2025-10-15 19:47:44 -07:00
Owner
  • Add more diagnostics
  • Output with color
  • Optimize stack trace generation by... printing the stack trace on the fly instead of storing a copy within diagnostics
- Add more diagnostics - Output with color - Optimize stack trace generation by... printing the stack trace on the fly instead of storing a copy within diagnostics
@ -10,0 +16,4 @@
/// - Error reporting via diagnostics
/// - Proper stack cleanup
///
/// # Migration Guide
Author
Owner

This isn't needed

This isn't needed
wmedrano marked this conversation as resolved
@ -123,4 +84,0 @@
/// This includes the current stack frame (idx 0) and all frames in the stack_frames history.
/// Frames are appended in order from most recent (current) to oldest (bottom of stack).
/// Clears any existing stack frames before appending.
pub fn setStackFrames(self: *Diagnostics, ctx: Context) void {
Author
Owner

We should leave this in for instances when the stack is destroyed after an error occurs.

This happens when we do exception handling.

We should leave this in for instances when the stack is destroyed after an error occurs. This happens when we do exception handling.
wmedrano marked this conversation as resolved
wmedrano deleted branch wmedrano 2025-10-15 19:47:44 -07:00
wmedrano referenced this pull request from a commit 2025-10-15 19:47:44 -07:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
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
wmedrano/szl!5
No description provided.