Skip to content

[Bug]: graphify path with a Type.Method name resolves to the class, returning a misleading path #4884

Closed

Description

@SyedFahad7

Repro for all (graphify 0.9.97, v8 @ 0a8cd4e), Report.cs:

public interface IReport { string Build(); }
public class PdfReport : IReport { public string Build() { return "pdf"; } }
public class CsvReport : IReport { public string Build() { return "csv"; } }
public class Exporter {
  private readonly IReport _report;
  public Exporter(IReport report) { _report = report; }
  public string Run() { return _report.Build(); }
}

graphify update .

Repro:

$ graphify path "Run" "PdfReport.Build"
No directed path found between 'Run' and 'PdfReport.Build'. Re-run with --undirected ...
$ graphify path "Exporter.Run" "PdfReport.Build"
Shortest path (2 hops):
  Exporter <--contains [EXTRACTED]-- Report.cs --contains [EXTRACTED]--> PdfReport

Node ids work: graphify path report_exporter_run report_pdfreport_build returns the 2-hop calls→dispatches_to path.
Expected: Type.Method resolves to the method node (or is refused as ambiguous with candidates, like query "Build" does), never silently to the class.
Refs: graphify/serve.py:1975 (_resolve_path_endpoint), 2023 (_path_search_graph); graphify/cli.py:~2040–2100. Related: #3935, #4511.

Activity

  1. github-actions commented on Oct 30, 2026

    @github-actions

    Thanks for opening this issue, @SyedFahad7. A maintainer will take a look soon.

    If you would like to discuss it in real time, come say hi on our Discord server. For longer-form questions and ideas there is also GitHub Discussions.

    To help us triage, please make sure the report includes what you expected, what actually happened, and the steps (and a small sample) to reproduce it.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions