pyret-lang icon indicating copy to clipboard operation
pyret-lang copied to clipboard

After running a program with a runtime error, interactions repl does not know about certain symbols

Open dyoo opened this issue 3 years ago • 1 comments

It appears that some context gets lost if there's an error in the running of the user's program, such that the interactions window doesn't have some bindings anymore. The screenshot should demonstrate the problem.

Screenshot 2022-10-30 3 13 19 PM

On the left pane is the program with an error: 8 * circle(25, "solid", "red")

which errors out as expected. However, on the right side, I try to play with circle expressions (for example, just referencing the circle identifier itself), and suddenly it looks like the runtime has no idea what "circle" means, much to my surprise.

dyoo avatar Oct 30 '22 22:10 dyoo