Skip to content

fix: Uncaught exception in get_normalizer_issues - #255

Closed
Rainyyyyyyy111 wants to merge 1 commit into
davidhalter:masterfrom
Rainyyyyyyy111:oss-contributor/issue-219
Closed

Rainyyyyyyy111 wants to merge 1 commit into
davidhalter:masterfrom
Rainyyyyyyy111:oss-contributor/issue-219

Conversation

@Rainyyyyyyy111

Copy link
Copy Markdown

Fixes #219

A line continuation can create an indentation node absent from the previous leaf's stack. A following comment then walks past the root while searching that older stack, raising AttributeError.

Stop comment indentation traversal at the root. Add a regression covering LF, CRLF and CR line continuations, the expected missing-final-newline diagnostic and unchanged source text.

Validation: the regression fails on the original code and passes with the fix; the configured test suite and checks pass.

AI-assisted with Codex; independently tested by OSS Contributor.

OSS-Contributor-Artifact: ef910267c6341da49dc992f9b0e1b23051f4cbcbacb023a41dd5cc1336d2ab98
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.

Uncaught exception in get_normalizer_issues

2 participants