Switch to JFileChooser on Mac with VAqua#88
Conversation
Looks like constructor in Editor called from from JavaEditor is calling an overloaded method back in JavaEditor that expects debugger to have been initialized which is not possible since the parent constructor has not returned. This switches to loading debugger on demand (upon calling getDebugger) which allows for the Editor to use overloaded methods that expect debugger to be initialized.
Due to the regression in FileDialog causing command c / command v to no longer work within FileDialog on Mac, having OS X use JFileChooser for the editor. This is keeping with the precedent set in processing/processing#1035.
|
I put this up because the precendent from processing/processing#1035 seems clear. That said, I'm on fence about this. I feel like there's too much benefit for using FileDialog even if copy / paste doesn't work. That said, the fact that you are unknowingly modifying the sketch code while attempting to copy / paste into the dialog is pretty bad. |
|
Ugh. I looked into this including a series of abandoned 3rd party libs. It doesn't look like there's an easy alternative. :( |
|
Yay great news! Vaqua might work. |
|
Yay Vaqua works! This is good to go! |
|
Sorry continuous integration on my side caught a missing jar. |
|
Should be fixed now. |
|
Hey there! There's a few PRs outstanding (with inter-dependencies) and the build on master has been broken on Mac for some time. So, I have an integration branch over at https://github.com/sampottinger/processing4 master. That branch includes this PR. This allows one to use Processing 4 again on a Mac along with all of the recent bug fixes. For your convenience, I have made builds available at https://www.datadrivenempathy.com/processing. |
|
Using VAqua will bump the minimum requirement for processing to OSX 10.10, I don't know if this is a problem, but something to be aware of. |
|
Good call @clankill3r. I am adding in a version guard. Everything is API compatible so, if Vaqua isn't available because OS X is too old, it will just revert to the regular OS X swing behavior (with the bad JFileChooser). |
Responded to @clankill3r's feedback, adding a OS X version gaurd before vaqua is enabled.
|
Thanks so much @benfry! Just made some updates below. Thanks! Min mac version Download Jar The message is not useful and it's not an error. I rebuilt the jar without that message but it does mean it's a custom jar. LMK how you want to proceed. Preferences Plus the addition of |
|
This is available on an integration branch at https://github.com/sampottinger/processing4 ( |
|
Is the custom build thing solved by doing checkout/patch/build as part of the build process? Can that be done with a couple lines in Opting to merge, though a little nervous about no new releases since February 2019 (i.e. no Catalina release, and this debug message still embedded.) Didn't see a link to a source repo to see if there's any development version or sign of commits. |
|
I appreciate the hard work but I think this is a case of over engineering.
|
|
This has since been reverted, and alpha 4 is not using VAqua. Please use a new issue if there's a problem. |

Due to the regression in FileDialog causing command c / command v to no longer work within FileDialog on Mac, having OS X use JFileChooser for the editor. This is keeping with the precedent set in processing/processing#1035. In response, switch to VAqua for a not terrible file mac-feel chooser (which also gives us dark mode!).
Resolves #77.
Resolves #89.
Blocked on #74.