|
| 1 | +# Processing 4.0.2 |
| 2 | + |
| 3 | +*Revision 1287 – 24 November 2022* |
| 4 | + |
| 5 | +🦃 Happy Thanksgiving! 🦃 |
| 6 | + |
| 7 | +Fixing more regressions and other steps backward found since the 4.0 release. |
| 8 | + |
| 9 | + |
| 10 | +## the big ones |
| 11 | + |
| 12 | +* OpenGL apps now work with macOS Ventura, once again thanks to @jaegonlee. [#544](https://github.com/processing/processing4/issues/544) |
| 13 | + |
| 14 | +* `fullScreen()` with `pixelDensity(2)` was broken with the default renderer. On startup, the sketch would report `Display -1 does not exist, returning 1 for displayDensity(-1)`. [#487](https://github.com/processing/processing4/issues/487) |
| 15 | + |
| 16 | + |
| 17 | +## the li'l ones |
| 18 | + |
| 19 | +* When calling `random()` on a list (now `choice()`) with no elements, it would throw a weird `Exception`. Now it throws a more descriptive exception. |
| 20 | + |
| 21 | + |
| 22 | +## need some help here |
| 23 | + |
| 24 | +* Loading SVG file was giving `Illegal base64 character 20 encoding error`. Fixed thanks to @jaegonlee and @vepo. [#592](https://github.com/processing/processing4/issues/592), [#599](https://github.com/processing/processing4/pull/599) |
| 25 | + |
| 26 | + |
| 27 | +## steps forward |
| 28 | + |
| 29 | +* Added a `choice()` method to the `XxxxList` classes, which returns a random value from the list. Similarly `removeChoice()` removes a random element from the list and returns the value. |
| 30 | + |
| 31 | +* Also added a `choice()` method that returns random integers. So `int value = choice(10)` is a shorthand way of saying `int value = (int) random(10)` |
| 32 | + |
| 33 | +* Removed the `choice()` (formerly `random()`) method from the `XxxxList` classes that took a `PApplet` object for its random number seed/generator. Just feels like overkill at this point. |
| 34 | + |
| 35 | + |
| 36 | +## internal changes |
| 37 | + |
| 38 | +* Using more Java 17 syntax in the code. No plans to really scrub everything to change the syntax over, just a matter of cleaning things up as we go. |
| 39 | + |
| 40 | +* Fixed a potential casting problem with `Platform` and `DefaultPlatform`. Should have been unreachable, but fixed anyway. |
| 41 | + |
| 42 | +* Brought back `getCodeIndex()` for GUI Builder Tool… then removed it again. [#545](https://github.com/processing/processing4/issues/545), [#596](https://github.com/processing/processing4/issues/596) |
| 43 | + |
| 44 | + |
| 45 | +contribs |
| 46 | +X Catalan translation for Processing 4.0.1 |
| 47 | +X https://github.com/processing/processing4/issues/550 |
| 48 | +X https://github.com/processing/processing4/pull/554 |
| 49 | +X Update to Ukranian language strings |
| 50 | +X https://github.com/processing/processing4/pull/585 |
| 51 | +X Fix errors in the Spanish translation |
| 52 | +X https://github.com/processing/processing4/issues/552 |
| 53 | +X https://github.com/processing/processing4/pull/574 |
| 54 | +X JSSC update for M1/M2 |
| 55 | +X https://github.com/processing/processing4/pull/577 |
| 56 | +X https://github.com/processing/processing4/issues/525 |
| 57 | +X Fix vertical placement of top elements in the Manager window |
| 58 | +X https://github.com/processing/processing4/issues/520 |
| 59 | +X https://github.com/processing/processing4/pull/539 |
| 60 | +X function/variable "does not exist" errors reported when defining a class without setup/draw |
| 61 | +X https://github.com/processing/processing4/issues/579 |
| 62 | +X https://github.com/processing/processing4/pull/597 |
| 63 | + |
| 64 | +docs |
| 65 | +X added a "Translations" page to the wiki |
| 66 | +X https://github.com/processing/processing4/wiki/Translations |
| 67 | +X https://github.com/processing/processing/wiki/Localization |
| 68 | +X explanation of how to create a naming.json file |
| 69 | +X https://github.com/processing/processing4/wiki/Naming-Sketches |
| 70 | + |
| 71 | +before 4.0.2 |
| 72 | +X library version number parsing isn't ignoring comments properly |
| 73 | +X https://github.com/processing/processing4/issues/586 |
| 74 | +X https://github.com/processing/processing4/issues/553 |
| 75 | +X Can't Update Libraries due to "this.progressBar" is null error message |
| 76 | +X https://github.com/processing/processing4/issues/567 |
| 77 | +X if naming scheme produces a sketch w/ the same name, what happens? |
| 78 | +X probably a crash (or infinite loop?) need to check |
| 79 | +X temp folders owned by one user can't be overwritten by another |
| 80 | +X this was on Linux; curious if Windows has an issue too? |
| 81 | +X overwrite with -Djava.io.tmpdir=/path/to/tmpdir |
| 82 | +X maybe we should use java.io.tmpdir -> processing -> $USER |
| 83 | +X https://github.com/processing/processing4/issues/549 |
| 84 | +X put in a note about the cleaning process |
| 85 | +X too many temp folders prevent restart |
| 86 | +X https://github.com/processing/processing4/issues/582 |
| 87 | +X if user clicks "no" when asked to access Documents folder, will cause weird problems later |
| 88 | +X "Please fix read/write" in ContributionManager.updateFlagged() |
| 89 | +X but that also shouldn't prevent users from continuing |
| 90 | +X https://github.com/processing/processing4/issues/581 |
| 91 | +X use tccutil or some api to check whether user has disallowed access |
| 92 | +X https://recoursive.com/2020/03/03/reset_macos_privacy_permissions/ |
| 93 | + |
| 94 | + |
| 95 | + |
1 | 96 | # Processing 4.0.1
|
2 | 97 |
|
3 | 98 | *Revision 1286 – 9 August 2022*
|
|
0 commit comments