Skip to content
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

Record syntax error messages #75

Open
atollk opened this issue Jul 10, 2022 · 0 comments
Open

Record syntax error messages #75

atollk opened this issue Jul 10, 2022 · 0 comments

Comments

@atollk
Copy link

atollk commented Jul 10, 2022

Right now, the Kotlin parser uses AntlrKotlinErrorListener to deal with errors while parsing. That class throws ParseCancellationException on syntax error, which seems to be a dummy class that doesn't hold any information. Basically, the information on which token the error occurred is completely lost.
Also, the parser explicitly removes all other listeners from the ANTLR parser, so you can't even inject one yourself to get that error information.

I think at least one, if not both, of these are issues that should be fixed. Otherwise, the user only gets a "something is wrong" error.

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

No branches or pull requests

1 participant