• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

source-academy / py-slang / 37093462041
88%

Build:
DEFAULT BRANCH: main
Ran 03 Oct 2026 03:41AM UTC
Jobs 1
Files 144
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

03 Oct 2026 03:31AM UTC coverage: 85.673% (-0.01%) from 85.683%
37093462041

push

github

web-flow
Fix resolver error carets pointing one column too far right (#484)

* Fix resolver error carets pointing one column too far right

NameNotFoundError, NameReassignmentError and ScopeConflictError padded
their caret line with `col - diff` spaces, treating Token.col as the
token's start column. It is actually the token's end column counted from 1
(contrary to its docstring), so every caret landed one column right of the
name:

    def f(y):
         ^ A name has been reassigned here.

Compute the caret column from the source offsets instead (start minus the
line's start index), in one shared helper, and align the "Perhaps you meant"
line with the message text. Token.col itself is untouched.

Adds tests that check the caret's actual column against the name's position
in the echoed line, and moves the stepper tests' expected messages left by
one space (they had the old, shifted carets baked in).

Fixes #475

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* Fix ReservedNameError's caret, which broke the build after merging main

#482 added ReservedNameError with the old caret padding and a MAGIC_OFFSET
import, which this PR removes, so the merge with main no longer compiled (CI:
"Cannot find name 'MAGIC_OFFSET'" in errors.ts). Convert it to the shared
underline() helper like the other resolver errors, which also fixes its caret
being one column too far right, and add caret-column tests for it.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>

4976 of 6232 branches covered (79.85%)

Branch coverage included in aggregate %.

12 of 12 new or added lines in 1 file covered. (100.0%)

11140 of 12579 relevant lines covered (88.56%)

169271.34 hits per line

Jobs
ID Job ID Ran Files Coverage
1 37093462041.1 03 Oct 2026 03:41AM UTC 144
85.67
GitHub Action Run
Source Files on build 37093462041
  • Tree
  • List 144
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #37093462041
  • 224ee6b0 on github
  • Prev Build on main (#37090996784)
  • Next Build on main (#37094665848)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc