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

Ouverte
#2,933 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Les mainteneurs répondent en général sous 1 jour

Personne n'a encore pris cette issue.

Évaluation

Difficulté
4/5
Temps estimé
3-5 jours
Accessibilité débutants
56/100
Type d'issue
Bug
Clarté
Clairement spécifiée
Activité
Active
Stack technique
css, powershell, tailwindcss
Domaine
tooling

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

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.
Langage dominant
C
Étoiles
45.8k
Forks
3.8k
Merge moyen
2 j 18 h
PR mergées (30 j)
108

Préparer son environnement

Ce projet ne fournit ni conteneur de développement, ni Dockerfile, ni guide de contribution : l'installation est à votre charge. Commencez par son README, et consultez notre guide de la première contribution pour les étapes générales.

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de DeusData/codebase-memory-mcp

Toutes les issues de DeusData/codebase-memory-mcp

Issues similaires

Plus d'issues C

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.