INI: valid pytest multiline values report parse_partial while single-line controls parse cleanly (0.12.1)

Offen
#2,935 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
52/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
c, python
Bereich
tooling

Rechercherichtung

Start by locating the INI parser and the diagnostics that mark files or lines as parse_partial; the issue does not name their paths or tests. Compare parsing of the supplied multiline and single-line fixtures, then check how Python ConfigParser handles the same values. Done means the pytest-style continuation lines no longer produce partial coverage, or the unsupported dialect is clearly identified while coverage disclosure remains accurate.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

Version / environment

codebase-memory-mcp 0.12.1, official GitHub release archive, standard darwin-arm64 binary; macOS 27.2 (Apple Silicon). Full index; default INI detection.

What happened

Valid pytest INI continuation lines are reported as parse_partial. The single-line equivalent has no recorded gap. This is an INI dialect/grammar coverage issue, not an invalid pytest configuration.

Reproduction

In an empty directory create pytest.ini:

[pytest]
addopts =
    --strict-markers
    --tb=short

And control.ini:

[pytest]
addopts = --strict-markers --tb=short

Run:

codebase-memory-mcp cli index_repository --repo-path "$PWD" --name ini-parser-repro --mode full --persistence false
codebase-memory-mcp cli index_status --project ini-parser-repro --diagnostics full --format json

Actual: pytest.ini is parse_partial at line 4; control.ini has no recorded parse gap. Replacing the continuation values with ordinary words:

[pytest]
addopts =
    first
    second

produces parse_partial at lines 3–4. Thus this is not limited to command-line dashes.

Python's standard ConfigParser successfully parses all variants, returning the expected multiline value for addopts. No pytest collection or application tests are needed for this reproduction.

Expected / impact

Support pytest's documented multiline INI values, or describe this as an unsupported INI dialect. Keep the existing coverage disclosure until fixed. The small fixtures reproduce partial coverage only; they do not reproduce the whole-file parse_unusable seen in a larger configuration.

Confirmations
  • Searched existing issues for pytest and multiline INI; no matching report found.
  • These are newly written generic snippets, with no proprietary configuration.
Vorherrschende Sprache
C
Sterne
45.8k
Forks
3.8k
Ø Merge
2 T. 18 Std.
Gemergte PRs (30 T.)
108

Entwicklungsumgebung

Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus DeusData/codebase-memory-mcp

Alle Issues in DeusData/codebase-memory-mcp

Ähnliche Issues

Weitere Issues zu C

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.