pyret-lang
pyret-lang copied to clipboard
REPL does not import essentials2021 until "Run" is hit once
If I type any function call that relies on an import from essentials2021 in the REPL before hitting "Run" for the first time in CPO, I get the following error message:

Basically, the functions provided by essentials2021 are not in scope until the "Run" button is clicked for the first time, which has been a point of confusion for cs111 students and staff this semester, since it appears that the same function call errors in the REPL but works when put into the code file and run.
Can we have the "Run" button be run once upon loading the page so that everything is in scope?
+1 to this. It's a crummy experience in PD to have teachers load CPO and do tons of simple things without ever hitting run....and then they all get errors if they try to make their first triangle.
If a context is defined, can we have it auto-run on pageload, or have Pyret not usable at all until Run is clicked? .