phetsims / projectile-data-lab

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

Example code may only work in studio #263

Closed KatieWoe closed 3 months ago

KatieWoe commented 3 months ago

Device Samsung OS Win 11 Browser Chrome Problem Description For https://github.com/phetsims/qa/issues/1060 If you try to use the code under the "Get Projectiles for a Field" section in Studio, it seems to run as expected. In other wrappers, such as State or Simulation, you get an error. Visuals studioonly

samreid commented 3 months ago

@matthew-blackman and I discussed this, and it is behaving as expected. The State wrapper has 2 Clients, so neither is named exactly phetioClient, and that wrapper is not set up to accept input like that. The standalone "Simulation" is not a wrapper at all, so there is no phetioClient to use in that case. Having things work in Studio is a good stand-in for knowing they will work in a Standard or Custom PhET-iO Wrapper. Closing.