Bug in save when changing suffix


#1

when i try to convert a subpatch axs file opened in the patcher to a standalone patch axp i cannot do that from the editor. i make my changes and hit save as, but i cannot change the filetype in the menu, i can select axp, but it does not persist. when i manually change the suffix to axp in the filename it does not work as well, the editor just asks if i want to change the suffix to axs because selection does not match suffix.... :slight_smile:

i think this is a bug. 1.0.12 on OS X.


#2

what version of macOS are you using?

I can see the same behaviour as well, using 10.12.3

the bad news is it appears to be some weird bug in Java, (perhaps on 10.12.3, hence my question)
we use a simple FileChooser from java, where we tell it what files are allowed (a so called 'FileFilter' at you see this at the bottom) , then we tell java to process the dialog , we don't control how the dialog behaves... then once the user has selected it, we have a check to see if the extension matches the file filter, and inform the user if they are different.
( so the inconsistency is within this 'standard file handling' thats done by java)

I played with it a bit, and indeed its now really inconsistent, e.g. you cant change the file filter to patch (from subpatch) but you can change it to help, once you do that you can then change it to patch... then you can change the extension and it works....
I remember testing this, a long time ago, when I introduced the file filters, and it worked perfectly, so something has happened since (new java, new os etc.. its been so long)

I guess the only way forward is custom file dialogs, or wait until java/osx fixes it :wink:


#3

yep, 10.12.3 it is...


#4

and your workaround is perfect for the moment...