pushkin-consortium / pushkin-exptemplates-basic

Basic jsPsych experiment with a "hello world" timeline.
MIT License
0 stars 6 forks source link

CLI / migrations error with new template #38

Closed jodeleeuw closed 1 year ago

jodeleeuw commented 1 year ago

I tried a clean install of version 0.2 of the site template and 5.0 of the experiment template. Running pushkin prep threw an error:

image

Digging into the experiment/migrations directory, the file there is:

image

I'm guessing the demo_ prefix is something that should have been updated to match the experiment name (jspsych7 in my case). I'm not sure where that should have happened.

jkhartshorne commented 1 year ago

Did you clean out your docker images first? Usually this happens when you have an existing local database with tables for each experiment created by knex. When you then start a new project, you have new experiments, but knex consults with the database and finds tables for which it can't find migrations files (essentially the knex config) for those tables.

jodeleeuw commented 1 year ago

Good call. That was the problem!

jkhartshorne commented 1 year ago

We are adding it to the Troubleshooting page in the docs!