-
Notifications
You must be signed in to change notification settings - Fork 38
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
Add implementation for incoming call hierarchy #1 #47
base: main
Are you sure you want to change the base?
Conversation
Dear @ellamongo, This is a great PR, and I believe this resolves #48 . Could you please let me know if you'd like to discuss anything, or would like any help with this? |
@ellamongo please read the following Contributor License Agreement(CLA). If you agree with the CLA, please reply with the following information.
Contributor License AgreementContribution License AgreementThis Contribution License Agreement (“Agreement”) is agreed to by the party signing below (“You”),
|
Dear @ellamongo , I am glad to see the tests succeed on this PR. Once you are able to accept the cla, I will be able to merge the PR. Thanks for your contribution! |
@ellamongo this is a great PR. Thanks for doing this. I'm about to open-source a batteries included callgraph builder, built on top of multilspy. It will definitely speed up construction of callgraphs for LSPs that support callHierarchy. On a related note @LakshyAAAgrawal, it might be good to keep a list of which LSPs actually implement certain commands, e.g I can probably do that after this PR, or @ellamongo if you have the time! your call, this is already solid work |
@themichaelusa can you elaborate on why callHierarchy works better for callgraphs? You still have to invoke it per method, no? |
@jbellis Wrote my last message in a rush - but if the behavior of callHierarchy with outgoingCalls in #48 part (2) that you mentioned is indeed in per file and not per method, then you don't need to resolve references per symbol... which is the primary time bottleneck that I've faced in indexing large repos. |
It looked like I was getting sane results asking for outgoing calls on an entire method at a time, but this was an illusion, it ended up missing things at random so no it's not a shortcut, LSP is just bad for this use case |
Hey ya all. @themichaelusa definitely agree about the check implementation API, it's cuz our use case is JAVA only for now so I know it's there. Will integrate this API during weekend in my spare time to make this call hierarchy apis complete. Also looking forward for your callgraph builder, it's kinda what we are trying to do as well, I can see it's useful for lots others. |
I'm using Joern for callgraphs now with some success. It's 3 orders of magnitude faster than LSP (~3s vs 30m to build the call graph for 4.5M loc), it has first class support for Java, rich querying. Everything is great except it's written in Scala so using it from a Java project is a bitch and a half, but I got it working. |
Background
We would like to resolve the full call stack(with multiple depth) from a method call in Java application. This pr adds related client implementations and tested on Java code. and also fixed some issues when running client with Eclipse LSP on macOs darwin arm64.
This PR: