please icon indicating copy to clipboard operation
please copied to clipboard

Support instantiation_stack when querying

Open bmustiata opened this issue 11 months ago • 1 comments

In bazel, it is possible to call the cquery with --proto:instantiation_stack.

The instantiation_stack shows where the target is created from and can help a great deal with tracing where things are made. It will return an array with file:column entries from the BUILD.bazel down to the native invoke.

I'd like to have the same for plz query graph to investigate where things get created. I could probably try to implement this myself if some tips are provided on where I should get the stack trace from and how to attach it to the query item.

Thank you for your great product!

bmustiata avatar Feb 29 '24 11:02 bmustiata

At present we don't have an explicit representation of the call stack available (it's recreated on the fly when errors occur). I can see where it'd be useful, but unsure how it will look to actually implement.

peterebden avatar Apr 11 '24 12:04 peterebden