Skip to content

fix: wrong line number for objects after multiline string#853

Merged
johanandren merged 4 commits into
lightbend:mainfrom
mattheworford:fix-ln-after-multi-str
Jun 3, 2026
Merged

fix: wrong line number for objects after multiline string#853
johanandren merged 4 commits into
lightbend:mainfrom
mattheworford:fix-ln-after-multi-str

Conversation

@mattheworford

Copy link
Copy Markdown
Contributor

@mattheworford mattheworford marked this pull request as ready for review June 3, 2026 03:49
@Zordid

Zordid commented Jun 3, 2026

Copy link
Copy Markdown

Would be wonderful if this fix could be released asap... Thanks so much, @mattheworford !


assertEquals(19, conf.getValue("pipelines.my-pipeline.processing.transformation").origin().lineNumber())
assertEquals(20, conf.getObject("pipelines.my-pipeline.processing.xml-to-json").origin().lineNumber())
}

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since we are touching parseArray as well, add a test covering that.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So the problem I identified also affects arrays? Interesting.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@johanandren added/passes in 68ff133

@mattheworford mattheworford requested a review from johanandren June 3, 2026 12:54

@johanandren johanandren left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks @mattheworford !

@johanandren johanandren merged commit 92fc7df into lightbend:main Jun 3, 2026
3 checks passed
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.

lineNumber() returns totally wrong line for elements of ConfigObject

3 participants