phetsims / projectile-motion

"Projectile Motion" is an educational simulation in HTML5, by PhET Interactive Simulations.
GNU General Public License v3.0
16 stars 13 forks source link

CT: Emitted unexpected number of args. Expected: 0 and received 1 #318

Open jbphet opened 1 year ago

jbphet commented 1 year ago

The CT readout for Projectile Motion is looking pretty red:

image

It's failing a number of different tests, but they all seem to have the same message. It is:

https://bayes.colorado.edu/continuous-testing/ct-snapshots/1671456500298/projectile-motion/projectile-motion_en.html?continuousTest=%7B%22test%22%3A%5B%22projectile-motion%22%2C%22fuzz%22%2C%22unbuilt%22%5D%2C%22snapshotName%22%3A%22snapshot-1671456500298%22%2C%22timestamp%22%3A1671458923847%7D&brand=phet&ea&fuzz&memoryLimit=1000
Query: brand=phet&ea&fuzz&memoryLimit=1000
Uncaught Error: Assertion failed: Emitted unexpected number of args. Expected: 0 and received 1
Error: Assertion failed: Emitted unexpected number of args. Expected: 0 and received 1
at window.assertions.assertFunction (https://bayes.colorado.edu/continuous-testing/ct-snapshots/1671456500298/assert/js/assert.js:28:13)
at assert (PhetioDataHandler.ts:161:14)
at validateArguments (Emitter.ts:117:19)
at emit (ProjectileMotionModel.ts:353:28)
at eventCallback (EventTimer.ts:111:11)
at step (ProjectileMotionModel.ts:339:22)
at step (Sim.ts:427:21)
at apply (PhetioAction.ts:157:16)
at execute (Sim.ts:1030:30)
at stepSimulation (Sim.ts:1020:11)
id: Bayes Puppeteer
Snapshot from 12/19/2022, 6:28:20 AM
jbphet commented 1 year ago

@matthew-blackman and I looked at this together, and could see that it has something to do with emitters and phet-io validation. He thought it might have something to do with the TypeScript conversion that he's working on. It's apparently about 80% done, so he's going to finish the conversion and see if it fixes this issue.