Skip to content

Fix sign indexing#8585

Open
APickledWalrus wants to merge 2 commits intodev/patchfrom
patch/sign-indexing
Open

Fix sign indexing#8585
APickledWalrus wants to merge 2 commits intodev/patchfrom
patch/sign-indexing

Conversation

@APickledWalrus
Copy link
Copy Markdown
Member

Problem

As described in #8577, there is a regression in 2.15 causing signs to now be 0-indexed rather than 1-indexed.

Solution

I added a small utility method to handle adjusting the line. I also added runtime errors for out of range inputs.

There is an additional bug fix in TypePatternElement for a log handler error that was being printed. loopLog.printError() was being called before exprLog was stopped. The solution was to simply remove the call as it will be handled in one of the finally blocks further down.

Testing Completed

I added a test for getting/setting for valid/invalid inputs.

Supporting Information


Completes:

@APickledWalrus APickledWalrus requested review from a team as code owners April 23, 2026 17:05
@APickledWalrus APickledWalrus requested review from Absolutionism and UnderscoreTud and removed request for a team April 23, 2026 17:05
@skriptlang-automation skriptlang-automation Bot added needs reviews A PR that needs additional reviews needs triage An issue that hasn't been classified or verified yet labels Apr 23, 2026
@APickledWalrus APickledWalrus linked an issue Apr 23, 2026 that may be closed by this pull request
1 task
@skriptlang-automation

This comment has been minimized.

@skriptlang-automation skriptlang-automation Bot moved this to In Review in 2.15 Releases Apr 23, 2026
@skriptlang-automation skriptlang-automation Bot added bug An issue that needs to be fixed. Alternatively, a PR fixing an issue. and removed needs triage An issue that hasn't been classified or verified yet labels Apr 23, 2026
@github-project-automation github-project-automation Bot moved this from In Review to Awaiting Merge in 2.15 Releases Apr 23, 2026
@skriptlang-automation skriptlang-automation Bot added patch-ready A PR/issue that has been approved and is ready to be merged/closed for the next patch version. and removed needs reviews A PR that needs additional reviews labels Apr 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug An issue that needs to be fixed. Alternatively, a PR fixing an issue. patch-ready A PR/issue that has been approved and is ready to be merged/closed for the next patch version.

Projects

Status: Awaiting Merge

Development

Successfully merging this pull request may close these issues.

Sign lines expression is now zero-indexed

4 participants