Export HTML doesn't create .js file

URL of experiment: https://run.pavlovia.org/trevorbaer/visual-illusions/html/
https://gitlab.pavlovia.org/trevorbaer/visual-illusions
Description of the problem: When I use the Export HTML feature in the builder, it creates at the folder and a .html file, but does not generate a .js file. I don’t get any errors in the builder that would indicate why it is failing to generate the .js file. I have tried removing all custom code as well as the loop which references a .xlsx file, but it still does not generate the file. Any advice on how I can track down where the problem is? My only thought at this point is to start rebuilding the experiment element by element to find out where it breaks on the exporting. Thank you!

Hi There,

Thanks for sharing your task :slight_smile: After taking a look and trying to export to HTML I received the following error messange in the stdout window:

NotImplementedError: ‘cross’ shape is in development. Not currently supported in PsychoJS.

Removing the cross stimulus allowed the .js file to compile.

That said, I see you are also using a fair few noise stimuli in your experiment. I am not sure that noise stim is yet implemented in psychoJS https://github.com/psychopy/psychojs (calling @thomas_pronk and @sotiri to check) . If this is the case, then you might want to consider using image stimuli instead (so long as the noise is static).

Becca

PS. if you do end up creating images - you can do that very quickly using code - here is a demo showing how to do that for gratings PsychoJS is not creating my Gratings

Thank you so much @Becca! You’re comment made me realize that my stdout window actually wasn’t outputting anything at all. I found the solution to that problem here and now I can see the error that you mentioned. No one ever expects the bug behind the error!

Ah that bug is a pesky one!! You will be pleased to hear it is resolved for the next release!!!

1 Like

Thank you again @Becca. I have got my task working online following your advice and using code to generate static images to use as the noise rather than using the noiseStim function. The task was working as intended, but has somehow stopped working and I’m not sure what went wrong. I am getting the error * ReferenceError: Can’t find variable: noise1File, but as far as I can tell, this is defined in the .js file like the other stimulus files.

Do you happen to know how I can double check that these are defined correctly? The variable in question is a parameter from the .xlsx file which is used to call all of the stimuli files.

Thank you in advance!

Seemingly it is working again without making any changes.