Description of the problem: The experiment was built in the PsychoPy 3 builder and has no problem running locally on my laptop, all the way through. But I synced it with Pavlovia through the builder and I’m now running into this issue that stops the study (a popup displaying: ReferenceError: ISI is not defined), so I’m assuming that it has something to do with the JS that was automatically created when synced with Pavlovia.
I tried defining the variable at the beginning of the JS file by simply putting:
ISI = 0.5;
But that did not fix the problem. I’m wondering what else I should try at this point? Is there a better way to define the variable?
The ISI = 0.5 is a part of a begin experiment tab code in the study in the PsychoPy builder, written in python. Did it not sync properly? And can I not make changes to the JS file directly to try and fix issues?
Please could you show a screenshot of your code component?
Changes directly made to the JS file will be lost when you sync and are therefore not recommended unless you are editing something that cannot be changed via the Builder.
Would trying to reupload the study help?
Is there any known reason why that definition in the code didn’t sync from the PsychoPy experiment in the first place?
I would currently recommend 2020.2.10. However, some bits did break in 2020.2 and still haven’t been fixed (such as .thisN). Please check my crib sheet for more details.