You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Crashing when trying to open file dialog to add FASTQ or CSV.
Crash happens as soon as you hit the "+" button to add files.
Behaviour is same in VS Code or in virtualenv.
I'm not totally clear on what the correct format for file_types is, some examples have '*'s and some do not and macs may need some additional information according to https://tcl.tk/man/tcl8.6/TkCmd/getOpenFile.htm#M16
OK using macincloud.com I can replicate this, and confirm that just askopenfilenames() doesn't trigger the bug.
Changing the file_types to a single type like:
also works, although the file dialog is a bit eccentric: selecting "CSV" offers up just CSV and "TSV" just TSV but selecting "TXT" offers up all three. Hmmm.
Activity
nickzoic commentedon Oct 4, 2023
OK using macincloud.com I can replicate this, and confirm that just
askopenfilenames()doesn't trigger the bug.Changing the file_types to a single type like:
also works, although the file dialog is a bit eccentric: selecting "CSV" offers up just CSV and "TSV" just TSV but selecting "TXT" offers up all three. Hmmm.
okay so this works:
and even looks right
but this still doesn't!
nickzoic commentedon Oct 4, 2023
This format for the file_types works in linux too so I guess it's okay but the inability to handle multiple extensions is problematic.
fix for #27 crash in macos
fix for #27, actually check the file_types supplied
nickzoic commentedon Mar 19, 2024
consider checking
platform.system() == 'Darwin'or similar[-]Crash on MacOS / M1[/-][+]Specifying Multi-Extension File Types [was: Crash on MacOS / M1][/+]Allow multiple file types on platofrms which support them #27