Skip to content

Improve parser error messages to include line and column numbers #801

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 12, 2025

Conversation

casperisfine
Copy link

The title says it all.

The line and column are also accessible as attributes on the exception object.

NB: this is only for the C version. The Java version would require quite a big refactor and I don't have the time or energy for it.

@casperisfine casperisfine force-pushed the improve-parsing-error branch from ba05d5b to 30e35b9 Compare May 12, 2025 12:25
@byroot byroot merged commit 2cbd5b6 into ruby:master May 12, 2025
33 of 34 checks passed
@casperisfine casperisfine deleted the improve-parsing-error branch May 12, 2025 12:31
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.

2 participants