You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
Right now, the Kotlin parser uses
AntlrKotlinErrorListener
to deal with errors while parsing. That class throwsParseCancellationException
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.
The text was updated successfully, but these errors were encountered: