Skip to content

Stack graph building errors in Python #476

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

Closed
bm-w opened this issue Feb 3, 2025 · 1 comment
Closed

Stack graph building errors in Python #476

bm-w opened this issue Feb 3, 2025 · 1 comment

Comments

@bm-w
Copy link

bm-w commented Feb 3, 2025

I’m trying to build a stack graph for either of the following Python input files:

list_args.py:

def my_fn(*args: list):
    pass

dict_kwargs.py:

def my_fn(**kwargs: dict):
    pass

But in both cases I get the following error:

BuildError::ExecutionError(InContext(Statement([StatementContext { statement: "edge @name.def -> @param.param_name at (871, 3)", statement_location: Location { row: 870, column: 2 }, stanza_location: Location { row: 860, column: 0 }, source_location: Location { row: 0, column: 10 }, node_kind: "typed_parameter" }]), InContext(Other("Evaluating edge source"), UndefinedScopedVariable("[syntax node list_splat_pattern (1, 11)].def"))))

This is using stack-graphs 0.14.1 with tree-sitter-stack-graphs-python 0.3.0.

@bm-w
Copy link
Author

bm-w commented Apr 4, 2025

This would be fixed by PR #478.

@bm-w bm-w closed this as completed Apr 4, 2025
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

1 participant