Python to Java translation seems to be busted

OS: Win 10
PsychoPy Version: 2020.2.10

Dear Jon and others,

I am trying to run my experiment on Pavlovia (Chrome Browser). The experiment works fine on PsychoPy (was programmed in Builder), but fails at almost every unique line within the Code components. This problem seems to stem from incorrect translation between Python and JS. (That’s why I couldn’t decide whether to open this thread here or on the “Online Experiments” category)

Some problematic functions I have identified are:

  • sum
  • .append
  • empty lists (e.g. accuracy=[])
  • .format

I tried manually changing the JS code on a few lines but overall the whole translation seems to be faulty, and after a while I am either trying to write the whole thing in JS (which I am not proficient in), or foregoing too much functionality of my experiment.

Here is the .rar file of the experiment for you to check:

Has this been the case for a while or is it the result of a recent update? I hadn’t been running into these types of problems before.

I am teaching a class on PsychoPy and my students are scheduled to collect online data starting next week. I am hoping that this Python–> JS translation problem can be solved by then? Otherwise we are in big trouble :slight_smile: