ImpowerGames / impower

An all-in-one, community-powered indie development platform that gives creative people the tools they need to bring their ideas to life.
https://www.impower.app
2 stars 1 forks source link

Comments above errors disrupts error line location #167

Closed Wipeless closed 2 years ago

Wipeless commented 2 years ago

Describe the bug When a comment is above the line of an error, the length of the comment will shift the error line location.

Steps To Reproduce

  1. Make the following simple script:
# RootSection
// A comment above will mess up the error line.
+ Let's try again... > {First|Second|Third}

^

Expected Result The sections First, Second, and Third do not exists. Error lines should appear under these uncreated sections regardless if there's a comment above.

Actual Result The comment and its length influences the error line location.

Screenshots commentErrors

Desktop (please complete the following information):

Additional context The example I provided shows choices but this problem can be encountered with any command as long an error exists with a comment above.

lovelle-cardoso commented 2 years ago

@Wipeless Fixed by 7e85c71d

Wipeless commented 2 years ago

Verified!