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

Explore graceful error handling for REPL #6722

Open
Anton-4 opened this issue May 6, 2024 · 3 comments
Open

Explore graceful error handling for REPL #6722

Anton-4 opened this issue May 6, 2024 · 3 comments

Comments

@Anton-4
Copy link
Contributor

Anton-4 commented May 6, 2024

Crashes/panics during e.g. roc dev file.roc are not such a big deal, but in the REPL you've now lost all your state and you need to restart. We should think about non-crashing error handling for all code used by the REPL. We should still have an option to print backtraces on error because those can be useful in some cases.

@kukimik
Copy link
Contributor

kukimik commented May 6, 2024

This may also be discouraging for newcomers. For instance, I wanted to experiment with the language in the online REPL (mainly with open/closed record types, as described in the tutorial) before taking the effort to actually install anything, but I experienced so many crashes that I gave up. I think I'll try the offline version, because I find the language interesting, but I imagine some potential users could drop out at this point.

@Anton-4
Copy link
Contributor Author

Anton-4 commented May 7, 2024

Agreed!

@Anton-4
Copy link
Contributor Author

Anton-4 commented May 10, 2024

A good first step here could be to produce nice error messages when something is not implemented, like in the todo's here. You can produce that panic by entering F = \x -> x % 3 in the (web) repl.

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

2 participants