Skip to content

fix(code-finder): match find_functions_by_argument against arg_types not parameter names - #1701

Closed
AloysJehwin wants to merge 2 commits into
CodeGraphContext:mainfrom
AloysJehwin:fix/find-functions-by-argument-type
Closed

AloysJehwin wants to merge 2 commits into
CodeGraphContext:mainfrom
AloysJehwin:fix/find-functions-by-argument-type

Conversation

@AloysJehwin

Copy link
Copy Markdown
Contributor

Fixes #1685.

find_functions_by_argument was matching against Parameter.name (the variable name) rather than the argument type. For typed languages like Java, type information lives on Function.arg_types, not on the Parameter node, so queries for types like OrderFilter returned no results.

The Cypher query now uses any(t IN f.arg_types WHERE t CONTAINS $arg_type) to match against the type list, with a fallback to parameter-name matching for untyped languages.


Note: The CI failures (Build Test 3.12/3.13/3.14, db-parity, e2e) are pre-existing failures on the main branch unrelated to this change. Specifically:

  • test_elisp_parser.py::test_parse_elisp_normalized_output — KeyError: 'sample-callback' fails on main (run 33686444387)
  • test_verify_databases_parity.py::test_database_parity_e2e — ladybugdb exit code -11 (SIGSEGV in ladybug library) fails on main (run 33686444386)
  • e2e tests — same ladybugdb crash fails on main (run 33686444388)

This PR is a re-submission of #1687 which was closed due to these pre-existing CI failures.

@vercel

vercel Bot commented Sep 5, 2026

Copy link
Copy Markdown

@AloysJehwin is attempting to deploy a commit to the shashankss1205's projects Team on Vercel.

A member of the Team first needs to authorize it.

@Shashankss1205

Copy link
Copy Markdown
Collaborator

@AloysJehwin this is a resubmission of #1687, which was closed a few days ago because #1686 fixed #1685 first — that fix (including the embedded-backend arg_types schema migration this diff still lacks) has been merged and released in 0.6.9. The issue is closed and the PR now conflicts with the shipped solution, so there's nothing left for it to fix. Closing.

To be clear about the norm here: when a PR is closed as an overlap of an earlier fix, re-opening the same diff doesn't change the outcome — the way to more merged contributions is new issues, and you've shown you're good at that (#1677 and #1680 were both excellent and merged same-day).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

find_functions_by_argument matches Parameter.name, not type — Parameter nodes have no type property

2 participants