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

Show less errors for code with syntax errors #287

Open
marat-rkh opened this issue Aug 15, 2021 · 0 comments
Open

Show less errors for code with syntax errors #287

marat-rkh opened this issue Aug 15, 2021 · 0 comments
Labels
usability-problem Usability Problem

Comments

@marat-rkh
Copy link
Member

Suppose I am defining a function:

Screen Shot 2021-08-15 at 1 03 04 PM

My caret is before the closing curly bracket. I know my code is incorrect, I need to write a type to fix it.

Expected: IDE shows me one error that says exactly that.

Actual: IDE spits way too many errors on me. The last 2 errors are incorrect, most of the rest are cryptic and confusing (<return expr wob> expected?):

Screen Shot 2021-08-15 at 1 03 24 PM

Screen Shot 2021-08-15 at 1 03 35 PM

Screen Shot 2021-08-15 at 1 03 48 PM

I think it makes sense to reduce the amount of errors. One way to do that is to improve the recovery rules in the parser definition.

@sxhya sxhya added the usability-problem Usability Problem label Aug 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
usability-problem Usability Problem
Projects
None yet
Development

No branches or pull requests

2 participants