Skip to content

symbol_id:N syntax is completely broken #63

Description

@chew-z
codanna mcp find_symbol getRecentFiles --json 

{
  "status": "success",
  "code": "OK",
  "message": "Operation completed successfully",
  "system_message": "Symbol found with full context. Explore 'get_calls' to see what it calls, 'find_callers' to see usage, or 'analyze_impact' to understand change implications.",
  "data": [
    {
      "symbol": {
        "id": 76,
        "name": "getRecentFiles",
        "kind": "Function",
        "file_id": 2,
        "range": {
          "start_line": 17,
          "start_column": 0,
          "end_line": 63,
          "end_column": 1
        },
        "file_path": "./database.go",
        "signature": "func getRecentFiles(conn *pgxpool.Pool) ([]NotoriaKrsFile, error)",
        "doc_comment": "getRecentFiles queries notoria_krs_files for recent records using the supplied pgx pool.\nIt expects a non-nil connection pool, filters rows to the last 10 days, and returns the\nbasic metadata needed for downstream renaming logic. The returned slice contains the\nhydrated NotoriaKrsFile records or nil when no rows match. If the query fails or the\nconnection is nil, an error describing the failure is returned.",
        "module_path": ".",
        "visibility": "Private",
        "scope_context": "Module",
        "language_id": "go"
      },
      "file_path": "./database.go:18-64",
      "relationships": {
        "implements": null,
        "implemented_by": null,
        "defines": null,
        "calls": null,
        "called_by": null
      }
    }
  ],
  "exit_code": 0
}
codanna mcp find_callers getRecentFiles --json 

{
  "status": "success",
  "code": "OK",
  "message": "Operation completed successfully",
  "system_message": "No callers found. This might be an entry point, unused code, or called dynamically.",
  "data": [],
  "exit_code": 0
}
codanna mcp find_callers symbol_id:76 --json 

{
  "status": "error",
  "code": "NOT_FOUND",
  "message": "Function 'unknown' not found",
  "error": {
    "suggestions": [
      "Check the spelling",
      "Ensure the index is up to date"
    ]
  },
  "exit_code": 3
}
Command With Name With symbol_id:76 Status
find_callers ✅ Works ❌ "Function 'unknown' not found" BROKEN
get_calls ✅ Works ❌ "Function 'unknown' not found" BROKEN
analyze_impact ✅ Works ❌ "Symbol 'unknown' not found" BROKEN
codanna -V 
codanna 0.6.5

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions