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

Relational dependancies not being tracked? #14

Open
Mbladra opened this issue Mar 9, 2023 · 4 comments
Open

Relational dependancies not being tracked? #14

Mbladra opened this issue Mar 9, 2023 · 4 comments

Comments

@Mbladra
Copy link

Mbladra commented Mar 9, 2023

It doesn't seem like there's any way to run static analysis to track relational dependancies? Even if you run analysis over a package, building the call graph only seems to look at one module at a time.

@ksrinivs64
Copy link
Collaborator

Yes, the current way this is created it has no notion of project scope because we applied it to millions of scripts drawn from GitHub (Google's BigQuery dataset). We can however add the notion of project scope and build the call graph across scripts within a project. It is a new feature though, so will leave this open for @juliandolby to comment.

@RokPopov
Copy link

Hi @ksrinivs64, I was wondering if you could give some update here? The fact that the GraphGen4Code is not able to map the relationships between the methods called in other methods and their respective definition location kinda beats the purpose of the framework? As basically the information I am getting in the json output of processed code is no more than I am getting from recursively traversing the AST of a Python file.

Hence, wondering how is developing the functionality to track the cross-file dependencies going

@ksrinivs64
Copy link
Collaborator

ASTs are not going to be able to give you data flow across procedures or method calls. As for the larger scope - meaning across files is an issue that we have not yet had time to address (each of us is busy with other work). Will update here soon as we can do it.

@RokPopov
Copy link

RokPopov commented Mar 7, 2024

I understand that this is the case with static analysis, so I implemented a solution that combines language servers which do runtime analysis. I guess this would be incredibly hard with only using static analysis by parsing the AST

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

3 participants