Skip to content

C# csharp code functions are misclassified as methods #1169

Description

@spam0115

Version

codebase-memory-mcp 0.9.0

Platform

Windows (x64)

Install channel

GitHub release archive / install.sh / install.ps1

Binary variant

standard

What happened, and what did you expect?

Codebase memory is misclassifying all c# functions in classes as methods and not function. Only global level functions are classified correctly. This bug is possibly due to whatever c# parsing library you use. See the following output:

ask codebase-memory how many methods and how many functions I have in this repo

Called `codebase-memory_query_graph' MATCH (n:Method) RETURN count(n) AS method_count project=C-s-NsfwRater

Called `codebase-memory_query_graph' MATCH (n:Function) RETURN count(n) AS function_count project=C-s-NsfwRater

10,015 methods (class/struct members)
34 functions (standalone/top-level functions)

Reproduction

  1. With codebase memory installed on a project written in the csharp language, ask your agent how many methods and functions I have in this repo.

Logs


Diagnostics trajectory (memory / performance / leak issues)


Project scale (if relevant)

No response

Confirmations

  • I searched existing issues and this is not a duplicate.
  • My reproduction uses shareable code (a dummy snippet or a public OSS repository), not proprietary code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority/backlogValuable contribution, lower scheduling urgency; review when maintainer capacity opens.questionFurther information is requestedux/behaviorDisplay bugs, docs, adoption UX

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions