OS: macOS 15.7.3 (Sequoia)
PsychoPy version: 2025.2.4
Hi PsychoPy team,
I’m encountering a bizarre issue where a very select few .jpg files are not being added to psychoJS.start in the JavaScript file created by Builder. The majority of files are added correctly.
These files are added via Online Resources with the correct path pointing to the image. They appear in the Online Resources list in Builder, but they do not make it into the generated JavaScript file. They do get uploaded to Pavlovia. There is no reason to believe they are any different in naming convention, size, or format from the other images that upload and export correctly.
This is a very bizarre bug (although I admit I consistently run into issues where I need to rename a file after modifying it, otherwise PsychoPy continues using the old version no matter how I sync). However, in this case, I’ve tried multiple fixes and nothing resolves the issue for 2 files.
What did you try to make it work?:
- Duplicated/re-exported and renamed the files (this sometimes works, but has not worked for all files).
- Referenced the files explicitly in a routine to ensure Builder detects them as used.
- Deleted the local HTML folder and re-exported the experiment from scratch.
- Moved the files to a new subfolder and re-added them with new names.
- Verified the files are successfully uploaded to Pavlovia.
- Restarted my computer.
- Restarted PsychoPy.
- Deleted the generated JS files and re-exported to regenerate them.
- Deleted the Git repository and recreated it from scratch.
- Cleared browser cache.
- Confirmed there is no HTML folder in the output path.
- Re-synced the project.
Link to the most relevant existing thread you have found: Resource list not updating from Builder to JS ; "Unknown Resource" online, but works fine offline? - #10 by wakecarter
What specifically went wrong when you tried that?:
I can see that only a few of the resources are not added to the generated JavaScript file. As a result, I get an “unknown resource” error when deploying online. When the experiment attempts to display the image, it cannot find the specific .jpg file because it was never referenced in the exported JS (psychoJS.start)
Thank you.