<@U06A03HV1> can you point me to where the native ...
# development
a
@witty-crayon-22786 can you point me to where the native engine stack trace is generated, e.g. when a
@rule
results in a Throw? i'm trying to figure out how to add more context to the warning message when sources globs fail to expand and
--glob-expansion-failure=warn
w
The generation of a "stack trace" only really happens after something has failed currently. You end up with a series of failed
Node
instances in the
Graph
, and then you can
Graph::trace
from a root down to failures.
I'm not sure it's worth it to add traces to warnings. But I think if you wanted to you'd have to add a method to
Context
that used a new method on the
Graph
to find a path to a root to use.
a
thanks for the description! i was thinking the only additional context that would really be useful is the target address spec -- i was asking about the trace more in the sense of "how would i get information about the engine execution outside of the current (Snapshot) node"
w
It's fairly generic. I don't see a good way to get specific context... would need to be generic context
a
sorry, generic in what sense?
w
The "trace" facility is generic. It just renders Nodes in the Graph
a
that makes sense
i'll look into adding a method to
Context
as you described above
thanks again