-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Need to be able to check rev of p5.js in Web Editor and elsewhere #828
Comments
Thanks for that, I didn't know you could check index.html in the Web Editor. The current version is certainly running 0.7.2 There are other cases where you can't easily check this, eg. openprocessing.org, where the p5.js lib is buried in a huge framework, I was never able to find it. I also think it's useful to be able to check it programmatically. I'm sending code to some collaborators using a local copy of p5.js and I can't easily enforce what they're using, or that they have updated promptly when a new rev is available. I don't advocate convoluted "get-around" coding around versions of libraries, but sometimes a check would be very useful for an important feature that just won't work in an older release, or has been broken in a new release. And if the sketch code discovers that it's running on a very old rev, it could perhaps just error and quit. All this seemed to be accepted in discussion in processing/p5.js#2525 but it lost momentum and got closed, that's ok. Ciao e buona fortuna a tutti. |
hi @grege2! thanks for making this issue. i think this could be partially covered in the web editor, and partially in the p5 library itself. getting p5 to return its version number would be handled in the library. however, one feature we've been wanted to add to the web editor is library management, see #4, which i think would also help with this. |
Hi @catarak - that's fine to close this issue in the p5 web editor list. What do you think I should do about progressing it in p5.js ? |
i just took a look at the ticket you made in the p5 repository (processing/p5.js#2525)—if you think it's important, feel free to reopen it! i recommend adding some use cases and some examples of libraries that add this behavior, as it will help determine how high priority it is with respect to other open tickets. |
Hi @catarak. Thanks. I'll look around, and maybe submit an implementation as well. Always easier to approve a mod/PR that's already been solved :=) Ciao. |
Nature of issue?
New feature details:
The issue processing/p5.js#3512 shows a case where it is quite misleading checking something in the Web Editor, without knowing what release of p5.js it is running.
I had this problem myself (ie. not knowing the rev behind the web editor) in a recent issue processing/p5.js#3490
I proposed that the rev of p5.js should be queryable in an old Issue processing/p5.js#2525 but it was closed due to general lack of momentum, that's ok, I didn't push it very hard myself.
I'd like to re-open the idea of being able to check the release of p5.js from your code.
Cheers, Greg E
The text was updated successfully, but these errors were encountered: