When the OSC server bootstraps the /sonic-pi Ruby files into Sonic Pi, it uploads each of them in a separate OSC message, as fast as it can. This causes causes a race condition in which some dependencies are not yet available. One solution would be to wait about 100ms between file uploads to let Ruby interpret each file before the next.
Example error:
Runtime Error: [eval, line 61]
uninitialized constant SonicPi::RuntimeMethods::SonicJam::State
When the OSC server bootstraps the /sonic-pi Ruby files into Sonic Pi, it uploads each of them in a separate OSC message, as fast as it can. This causes causes a race condition in which some dependencies are not yet available. One solution would be to wait about 100ms between file uploads to let Ruby interpret each file before the next.
Example error: