-
Notifications
You must be signed in to change notification settings - Fork 63
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
The SAW REPL is not in a useful state after a failure while loading a file #1341
Comments
I've noticed this behavior too, where if there's an error in the middle of loading a file using Would you rather change the default behavior so that any changes to the |
Yes, that's what I had in mind. |
Also reimplement the `REPL` monad to adapt to this change. This makes it so that the `REPL` monad can also preserve state changes when an exception is thrown in a `TopLevel` action. Fixes #1341.
Also reimplement the `REPL` monad to adapt to this change. This makes it so that the `REPL` monad can also preserve state changes when an exception is thrown in a `TopLevel` action. Fixes #1341.
In the SAW REPL, let's say I run
include "mydir/file.saw"
and a proof in the middle offile.saw
fails. At that point I get back a prompt in the REPL. However, none of the definitions appearing infile.saw
before the line that fails seem available. So, to debugfile.saw
interactively, I have to comment-out all the lines after and including the failing line, restart the REPL, and include the file again. This can take a lot of time. What would be great is if, upon failure, one would be left with a REPL in the state it was just before interpreting the failing line infile.saw
.Another issue is that the current directory of the REPL process is now changed to
mydir
.The text was updated successfully, but these errors were encountered: