Expand description
fallow trace-error: resolve a runtime stack trace’s frames against the
project graph.
Two independent halves, kept apart so each is testable on its own:
parse_stack_traceturns text into frames. Pure, no graph, no I/O.resolve_stack_traceasks the module graph which definitions each frame’s identifier names.
The graph is asked ONLY about frames whose file resolved to project source. Everything else keeps its place in the reported array with its origin recorded, so the reported frame numbering matches the trace as pasted and the counts close.
No source-map layer. A frame pointing into a build artifact reports that fact rather than being rebound through a map that may be stale, because a confidently wrong line is worse than a named refusal.
Structs§
- Parsed
Stack Trace - A stack trace after parsing and before resolution.
- RawFrame
- One frame as read from the input, before the graph is consulted.
Constants§
- MAX_
STACK_ TRACE_ BYTES - Largest stack trace this verb will read, from a file or from stdin.
Functions§
- parse_
stack_ trace - Parse a runtime stack trace into frames.
- resolve_
stack_ trace - Resolve a parsed stack trace against the module graph.
- trace_
error_ with_ session - Resolve a stack trace through an existing analysis session.