PowerShell numeric multiplier 1KB and Tailwind @apply values with parentheses are flagged parse_partial

Open
#2,933 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
56/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
css, powershell, tailwindcss
Domain
tooling

Research direction

Start by tracing how index_repository in fast mode reports parse_partial ranges for the PowerShell and CSS examples in the issue, then inspect the relevant parser or error-range handling. Reproduce each file separately and check which syntax construct triggers its line 2 range. Done means both examples produce zero parse_partial ranges while existing coverage behavior remains intact.

Written by the indexing model from the issue text.

Description

ux/behavior windows
Version

codebase-memory-mcp 0.12.1

Platform

Windows (x64)

Install channel

GitHub release archive / install.sh / install.ps1

Binary variant

standard

What happened, and what did you expect?

Two isolated, valid files are reported as parse_partial. Neither construct is proprietary, and both are accepted by the toolchain that actually runs them (Windows PowerShell, and Tailwind's @apply).

Expected: parse_partial_count: 0. These ranges are legal syntax, and in a real index the surrounding symbols were still extracted, so the flag is a false coverage gap.

I searched existing issues. This is not #2174 (PowerShell nested type [System.Environment+SpecialFolder]) and not #1700 (SCSS @use ... as *). The related TypeScript case, import('...').T[] inside a generic call type argument, is already open as #2576, so it is not re-filed here. On 0.12.1 that construct still flags the call line.

Reproduction
  1. Two files:

size.ps1

function Show-Size($bytes) {
  "size=$([math]::Round($bytes / 1KB))KB"
}

ui.css

.plain { @apply grid grid-cols-2; }
.repo-columns { @apply grid grid-cols-[minmax(0,1fr)_auto]; }

The only unusual PowerShell token is the numeric multiplier 1KB. The only unusual CSS token is minmax(0,1fr) inside a Tailwind @apply arbitrary value. The plain @apply on line 1 is not flagged.

  1. Command: MCP index_repository with mode: fast on a directory that contains only those two files.

  2. Actual result:

parse_partial_count: 2
size.ps1  error_ranges: 2-2
ui.css    error_ranges: 2-2

Expected: parse_partial_count: 0.

In a larger repository the same lines were the only flagged ranges (scripts/probe-modelscope.ps1 113-113, src/styles.css 147-147). PowerShell functions in that script were still indexed, and the CSS file only contributes a file node, so no declaration was dropped. The coverage warning is still wrong for both constructs.

Logs
parse_partial:
  size.ps1  2-2
  ui.css    2-2
Diagnostics trajectory (memory / performance / leak issues)

Not a memory or performance issue.

Project scale (if relevant)

Reproduction: 7 nodes / 6 edges / 2 files. The same two constructs were first seen while indexing a 2999-node repository.

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.
Dominant language
C
Stars
45.8k
Forks
3.8k
Avg merge
2d 18h
Merged PRs (30d)
108

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from DeusData/codebase-memory-mcp

All issues in DeusData/codebase-memory-mcp

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.