Skip to content

render readable ranges in look-ahead blocker diagnostics - #472

Merged
notatallshaw merged 2 commits into
bug/report-versionrange-reprfrom
bug/lookahead-blocker-range-repr
Aug 9, 2026
Merged

notatallshaw merged 2 commits into
bug/report-versionrange-reprfrom
bug/lookahead-blocker-range-repr

Conversation

@notatallshaw

@notatallshaw notatallshaw commented Jul 17, 2026 •

Copy link
Copy Markdown
Owner

The Diagnostics section of a failure report explains each look-ahead blocker on its own line. Those lines are built inside the provider before the report formatter sees them, so #448's hook could not reach them and they still rendered ranges with str(). Asking for b>=2 alongside a c whose every release pins b==1.0 gave:

requires b in <VersionRange '[1.0, 1.0[AFTER_LOCALS]]'> but root has it in <VersionRange '[2, +inf)'>

They now go through the same format_range, so that line reads requires b in ==1.0 but root has it in >=2.

The decision-block line changes further. It said requires b != 1.0, negating the blocker it ran into instead of naming what the candidate asked for. It now reads requires b in ==2.0 but solution has it at 1.0, naming the decided version directly rather than as a singleton range, which has no specifier spelling of its own.

Stacked on #448.

@notatallshaw
notatallshaw force-pushed the bug/lookahead-blocker-range-repr branch from b3fc6b8 to 194a0b4 Compare July 22, 2026 05:30
@read-the-docs-community

read-the-docs-community Bot commented Jul 22, 2026 •

Copy link
Copy Markdown

@notatallshaw
notatallshaw force-pushed the bug/lookahead-blocker-range-repr branch from 194a0b4 to cd7f2de Compare July 27, 2026 11:11
@notatallshaw
notatallshaw changed the base branch from main to bug/report-versionrange-repr July 27, 2026 11:11
@notatallshaw
notatallshaw force-pushed the bug/report-versionrange-repr branch from 35908b8 to 4a4d81d Compare August 3, 2026 13:33
@notatallshaw
notatallshaw force-pushed the bug/lookahead-blocker-range-repr branch from cd7f2de to 0d375e4 Compare August 3, 2026 14:07
@notatallshaw
notatallshaw force-pushed the bug/report-versionrange-repr branch from 4a4d81d to 09d464e Compare August 8, 2026 02:08
@notatallshaw
notatallshaw force-pushed the bug/lookahead-blocker-range-repr branch from d828bf9 to 0d634b1 Compare August 8, 2026 02:14
@notatallshaw
notatallshaw force-pushed the bug/report-versionrange-repr branch from 09d464e to 7f219e9 Compare August 8, 2026 05:55
@notatallshaw
notatallshaw force-pushed the bug/lookahead-blocker-range-repr branch from 0d634b1 to 4d7bad1 Compare August 8, 2026 06:09
@notatallshaw
notatallshaw force-pushed the bug/report-versionrange-repr branch from 7f219e9 to 9d7bbe3 Compare August 8, 2026 23:30
@notatallshaw
notatallshaw force-pushed the bug/lookahead-blocker-range-repr branch from 4d7bad1 to f6ce307 Compare August 8, 2026 23:39
The decision-block path already unions each rejected candidate's declared dep range for blocker widening. Read that union in the no-versions message so it names the range the candidate needs instead of negating the decided version, matching the range- and root-block paths.
@notatallshaw
notatallshaw force-pushed the bug/report-versionrange-repr branch from 9d7bbe3 to 7c11b48 Compare August 9, 2026 19:59
@notatallshaw
notatallshaw force-pushed the bug/lookahead-blocker-range-repr branch from f6ce307 to eb767a2 Compare August 9, 2026 19:59
@notatallshaw
notatallshaw marked this pull request as ready for review August 9, 2026 22:35
@notatallshaw
notatallshaw merged commit c6c452e into bug/report-versionrange-repr Aug 9, 2026
59 checks passed
@notatallshaw
notatallshaw deleted the bug/lookahead-blocker-range-repr branch August 9, 2026 22:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant