| Reference | Downloads | Github

Experiment javascript imports incorrect PsychoJS version

Using Psychopy 3.0.0 (stable) on Windows, the generated javascript file for the experiment imports the beta 11 psychojs files. From the very beginning of the generated javascript:

import { PsychoJS } from './lib/core-3.0.0b11.js';
import * as core from './lib/core-3.0.0b11.js';
import { TrialHandler } from './lib/data-3.0.0b11.js';
import { Scheduler } from './lib/util-3.0.0b11.js';
import * as util from './lib/util-3.0.0b11.js';
import * as visual from './lib/visual-3.0.0b11.js';
import { Sound } from './lib/sound-3.0.0b11.js';

I realized this because my online experiment was not gracefully exporting data when there were commas within fields. After I manually changed the javascript file to import b13 files (which appears to be the current psychoJS version?) the csv output was correctly formatted even with commas within fields.

Am I the first one to encounter this issue? I thought maybe a preference had carried over from a previous PsychoPy version so I uninstalled and reinstalled the stable release. The exported javascript still imports the beta 11 files.

Hi @kevinhroberts, thanks for the heads up. A pull request has been already been made to fix this, just awaiting some testing issues to be fixed and this can be pulled in to the master branch.

1 Like

Awesome, thanks. Looking forward to the fix!

Yes, thanks Kevin. I’ll push a patch release out today to fix this

Fixed in 3.0.1

1 Like