if key_resp2_2B:
if "backspace" in key_resp2_2B.keys:
key_resp2_2B.keys.remove("backspace")
if len(key_resp2_2B.keys) > 0:
key_resp2_2B.keys.pop()
elif "return" in key_resp2_2B.keys:
key_resp2_2B.keys.remove("return")
thisExp.addData("recall_resp", screen_text)
continueRoutine = False
screen_text = ''.join(key_resp2_2B.keys)
hi, that still doesnt seem to work in pavlovia. I am getting the same error
it is still working locally in psychopy with this new code and the previous code…but i dont know why its the same error. I cant seem to figure out what ‘in’ is referring to
Did you use Ctrl-Shift-R to flush the cache?
I’ve never heard of that! Do I do that in the builder? Or somewhere in particular?
From my crib sheet.
If Pavlovia refuses to run the latest upload of your experiment, disable the cache via Network conditions in the browser console. You may also need to clear the cache when you first set this (using Ctrl-F5, Ctrl-Shift-R or equivalent). When you have developer tools showing you can also press and hold the page refresh icon and select Empty Cache and Hard Reload.
This doesnt seem to work for me, ive tried all the ways that were also on that forum and the crib sheet but the same error keeps coming up
Would you like to add me (Wake) as a developer so I can check the issue myself?
Best wishes,
Wakefield
i have added you as a developer. thank you very much
I think that the issue is that your keyboard doesn’t start until .5 seconds and is checked from frame 0
Personally I would move the start times of all your components in routine_RespTrial to 0 and add a text component containing a single space in routine_PreTrial from 5 to 5.5 seconds.
thank you! Im sorry but i didnt quite understand the second part of the suggestion. so on the routine_prestrial i should add a new Text component? Such as:
Start time: 5
Duration: 0.5
Text: (a single space)
still does not seem to work, i have added those suggestions, syncd the study onto pavlovia and have tried to run it, and also cleared the cache
Sorry – my mistake. I’ve just tested this out and the correct syntax is:
if key_resp2_2B.keys:
if "backspace" in key_resp2_2B.keys:
...
i just wanted to confirm that it should look like this:
(changed line 1 and 2 to reflect the syntax you sent)
That looks correct.
hi i was wondering if the task is running for you? I sync’d the task again after them changes but i am not able to have the task running so im wondering if its just a problem in my browser as its the same error as before (even after clearing the cache)
I don’t think you’ve synced the changes yet. Line 1443 of your JS code still says if (key_resp_4) {
i tried syncing the files using the ‘search’ button in psychopy then choosing this file and it says successful sync but that doesnt reflect on pavlovia…not sure why as thats how i normally sync it
You’ve only added .keys to if key_resp2_2B, not if key_resp_4 and if key_resp2_2