therewasaguy / p5js-webIDE

demo ~
http://p5ide.herokuapp.com/
47 stars 11 forks source link

Updated p5 library #94

Open shiffman opened 8 years ago

shiffman commented 8 years ago

I guess there's a larger question of how the p5.js library gets updated. But for now, it would be great to make sure the most recent (0.4.21) is used as there's a key transformation bug that is causing some confusion.

therewasaguy commented 8 years ago

At the moment, here's where we're setting the default files IDs for new projects: https://github.com/therewasaguy/p5js-webIDE/commit/f9caf0f9514db300c07f2bb1157060c6116761e5

We can update by creating a new project, pasting the latest version of p5, saving the project, getting the ID of the new p5 file, and replacing it the default ID in pfile.js.

I started looking into automatic updates a while back

https://github.com/therewasaguy/p5js-webIDE/blob/f9caf0f9514db300c07f2bb1157060c6116761e5/app/models/pfile.js#L106

That's how we'd get the latest version of the library, but gotta think about the best way to integrate this...

shiffman commented 8 years ago

Ah, thanks I understand better now. I think maybe it makes sense to table this discussion and update manually right now with your temporary solution until we sort out exactly how we will handle file systems (i.e. https://github.com/therewasaguy/p5js-webIDE/issues/100).