psychopy.org | Reference | Downloads | Github

Experiment javascript imports incorrect PsychoJS version


#1

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.


#2

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.


#3

Awesome, thanks. Looking forward to the fix!


#4

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


#5

Fixed in 3.0.1