Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support instantiation_stack when querying #3086

Open
bmustiata opened this issue Feb 29, 2024 · 1 comment
Open

Support instantiation_stack when querying #3086

bmustiata opened this issue Feb 29, 2024 · 1 comment

Comments

@bmustiata
Copy link

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 bmustiata changed the title Support instantiation_stack and definition_stack when querying Support instantiation_stack when querying Feb 29, 2024
@peterebden
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants