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

REPL does not import essentials2021 until "Run" is hit once #1684

Open
sreshtaaa opened this issue Feb 6, 2023 · 1 comment
Open

REPL does not import essentials2021 until "Run" is hit once #1684

sreshtaaa opened this issue Feb 6, 2023 · 1 comment

Comments

@sreshtaaa
Copy link

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:
image

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?

@schanzer
Copy link
Contributor

schanzer commented Feb 7, 2023

+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? .

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