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

Open
#2,935 1 comment 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
52/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
c, python
Domain
tooling

Research direction

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.

Written by the indexing model from the issue text.

Description

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.
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.