Version
codebase-memory-mcp 0.10.8
Platform
Windows (x64)
Install channel
GitHub release archive / install.sh / install.ps1
Binary variant
standard
What happened, and what did you expect?
What happened, and what did you expect?
A valid C# 14 extension declaration can cause the containing .cs file to not be indexed at all.
Minimal example:
using System;
using System.Collections.Generic;
using System.Linq;
namespace DemoApp.Domain.Test;
public static class NumberExtensions
{
extension(IEnumerable numbers)
{
public int SumPositive() =>
numbers.Where(number => number > 0)
.Aggregate(0, static (running, next) => running + next);
}
}
After indexing the repository, this extension method is not present in the Codebase Memory graph at all.
Expected result
The extension method should be indexed normally.
Reproduction
- Create a .NET project using C# 14.
- Add a file containing:
using System.Collections.Generic;
using System.Linq;
namespace DemoApp.Domain.Test;
public static class NumberExtensions
{
extension(IEnumerable numbers)
{
public int SumPositive() =>
numbers.Where(number => number > 0)
.Aggregate(0, static (running, next) => running + next);
}
}
3. Run a full repository index.
4. Search the graph for: SumPositive
Actual Result:
The SumPositive is not indexed / does not appear in the graph.
Logs
Diagnostics trajectory (memory / performance / leak issues)
Project scale (if relevant)
No response
Confirmations
Version
codebase-memory-mcp 0.10.8
Platform
Windows (x64)
Install channel
GitHub release archive / install.sh / install.ps1
Binary variant
standard
What happened, and what did you expect?
What happened, and what did you expect?
A valid C# 14 extension declaration can cause the containing .cs file to not be indexed at all.
Minimal example:
using System;
using System.Collections.Generic;
using System.Linq;
namespace DemoApp.Domain.Test;
public static class NumberExtensions
{
extension(IEnumerable numbers)
{
public int SumPositive() =>
numbers.Where(number => number > 0)
.Aggregate(0, static (running, next) => running + next);
}
}
After indexing the repository, this extension method is not present in the Codebase Memory graph at all.
Expected result
The extension method should be indexed normally.
Reproduction
using System.Collections.Generic;
using System.Linq;
namespace DemoApp.Domain.Test;
public static class NumberExtensions
{
extension(IEnumerable numbers)
{
public int SumPositive() =>
numbers.Where(number => number > 0)
.Aggregate(0, static (running, next) => running + next);
}
}
3. Run a full repository index.
4. Search the graph for: SumPositive
Actual Result:
The SumPositive is not indexed / does not appear in the graph.
Logs
Diagnostics trajectory (memory / performance / leak issues)
Project scale (if relevant)
No response
Confirmations