trinketapp / processing.sk

Processing.js with skulpt sauce
10 stars 3 forks source link

Previously working example no longer working and no error #36

Open brianpmarks opened 6 years ago

brianpmarks commented 6 years ago

Same user report for #35 but a different error. They state that the trinket used to work but now no error is shown but neither does the trinket work. Example here: https://trinket.io/embed/python/56d5bfc9c6

Forgive me if this is a known issue but I wasn't sure what exactly to report.

eah13 commented 6 years ago

Based on a paste into my dev env, #33 shows the same behavior.

Maybe progress: moving run() to the bottom of the program gives

ExternalError: Error: Couldn't infer function to wrap on line 20 in main.py

That line is ball_color = color(200, 20, 60)

https://trinket.io/python/b7ea568e3b

eah13 commented 6 years ago

Two things:

albertjan commented 6 years ago

So about the run function needing to go to the end. Is because the run function is synchronous and will return when the sketch finishes.

I will investigate the automatic initialisation of a sketch on the first call to a processing.py function.