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

オープン
#2,935 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
52/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
c, python
領域
tooling

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.
主要言語
C
スター
45.8k
フォーク
3.8k
平均マージ
2日 18時間
マージ済み PR(30日)
108

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

DeusData/codebase-memory-mcp のほかの issue

DeusData/codebase-memory-mcp の issue をすべて見る

似ている issue

C の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。