Description of the problem:
To test certain features i have text appear on the screen
expInfo[‘session’] does not appear. i’ve tried simpler text like ‘helo world’ which also doesnt appear
i try printing out in the console and it doesnt appear as well.
I tried adding loops and it doesnt appear
My other experiments do update without a problem.
There is only a single branch so its not a problem of the changes being stored in a different branch.
I clear cache/data and keep refreshing my browser. I made sure git is fully up to date.
Hmm, when I use the Compile JS button in Builder and look through the resulting .js file, I can see references to text_27 and text_31, but when I look at the .js file which the experiment is using on Pavlovia there’s no such references. So this suggests a problem syncing - when you sync from Builder, do you get any errors? Does the sync dialog appear and give the usual “Successful sync happened at etc etc etc” message?
Ah that’ll explain it - when you sync from Builder, before syncing the experiment script is written from the Builder experiment. You can do this manually by clicking the Compile JS button. If you sync from the command line, then it’s only syncing the .psyexp file and whatever state the .js file is in from the last time it was compiled. Try compiling your script before syncing, or just syncing direct from Builder.
If you’re syncing from the command line then it won’t be to do with your version of PsychoPy. Are you getting any confirmation back from the terminal that your sync was successful? Are the changes to taskV2.js definitely staged and committed?
I do get confirmation that sync was successful. and generally i am told that 3 files were changed and committed which only occurs if i first stage taskV2.js
when I search for text_27 in the js file that is on pavlovia- it is there as well, yet the text does not appear. The latest commit is indeed reflective of when i last tried to commit a chance (yesterday afternoon)
is there a specific comparison you would like me to make?
I could create a whole new experiment by deleting the .git file etc… but we already paid for participants to complete the experiment with the specified link which we cannot change mid experiment (on prolific)
You can create a new copy of the local files without changing the location of the online files. Whenever I create a demo, I make it in my Wake Gitlab namespace, fork it to vespr, delete the original local files and then sync to a recreated folder from the vespr namespace (because you can only create a new experiment in your main namespace).
Sorry a bit of a novice here and dont know git well enough so didnt 100% follow
Are you suggesting i create a new folder and copy over the experiment and then commit it as a different branch to the current namespace?
No – create a new folder and search for the files from Gitlab via the magnifying glass icon. To use the existing namespace you need to get the files from there, not locally.