Skip to content

detect-tools FATAL for a below-floor Python does not name the floor (3.9) #1007

Closed

Description

@fdaviddpt

Follow-up from the review of #1005 (fixes #1003).

When every Python on PATH is below the supported floor, scripts/detect-tools.sh fails with
FATAL: below the floor this plugin supports: followed by each candidate and the version it reported.
That line never says what the floor is. scripts/doctor.sh relays the text unchanged in its
FAIL Python: line, so a user reading either one cannot tell which version to install
without reading the source.

doctor's separate below-floor WARN (the backstop for a cache hit) already interpolates
${_REMEMBER_PY_FLOOR_MAJOR}.${_REMEMBER_PY_FLOOR_MINOR} and says "Install a newer Python".
The FATAL path should be as actionable: name the floor and the fix.

Constraint: detect-tools.sh is inlined into every compiled hook, and session-start-hook.sh
had 37 bytes left under the 122,880-byte budget after #1005. Keep the extra text short, or
let doctor add the floor number to the line it relays instead of growing the inlined message. See #1006.

[AI-generated]

Activity

  1. added
    priority:low
    filed-by-loop
    lane-diagnostics
    cohort-23
    cohort-24
    cohort-25
    cohort-26
    on Oct 9, 2026
  2. self-assigned this
    on Oct 31, 2026
  3. added a commit that references this issue on Nov 9, 2026
    b3828ca
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

cohort-23cohort-24cohort-25cohort-26filed-by-looplane-diagnosticspriority:low

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions