issues with file browser component - can't save (stable version)
On Linux, arch-based EndeavourOS KDE Plasma 6.3.4 KDE Frameworks 6.12.0 QT 6.9.0 Wayland
Issues:
-Can't save on Stable version, will freeze application, have to kill process
Works on last experimental version, saves, but doesn't show the name of the file if using only "save file". I re-enter manually, no big deal, the file gets saved...
-Autosave doesn't work either
"True" in advanced settings didn't get set the first time, I had to re-set it but it still didn't save
When starting from terminal, I get this error when saving or trying to save: "JUCE Assertion failure in juce_FileBrowserComponent.cpp:47". In juce_FileBrowserComponent.cpp it says this: " // You need to specify at least one of these flags.. jassert ((flags & (canSelectFiles | canSelectDirectories)) != 0); "
I tried to inspect using strace but being a pretty green programmer, it's too much for me! I see a lot of ENOENT errors though...
Just got back into Linux so there might be KDE issues already known and something that I should do and that I m not doing. Or even with JUCE, I'll keep investigating. I know this is not Reddit but thanks a lot for this. Can't wait to start flashing patches to my new 65MB daisy seed! Didn't know it existed until yesterday. I just spent a year using Max and a couple years with PD before that and I feel at home, finally.
edit: Works when built from source.
@timothyschoen Hi, I just spent 2 days getting familiar with the code base and even CMake . I realized that it shows the "save as" dialog again only if the patch isn't saved with an extension the first time. Anyways, this works in EndeavourOS but I'm a noob. Just commented stuff out since I'm really far from being knowledgeable enough to push any code...I just tried to set the flags explicitly since I didn't understand why the files didn't show up the way the open dialog does. The Overwrite warning gets triggered properly it seems.
from Dialogs.cpp:889
auto saveChooserFlags = FileBrowserComponent::saveMode | FileBrowserComponent::canSelectDirectories | FileBrowserComponent::canSelectFiles;
/* if (directoryMode) { saveChooserFlags = FileBrowserComponent::canSelectDirectories; } */
// TODO: checks if this still causes issues
// #if !JUCE_LINUX && !JUCE_BSD saveChooserFlags = static_castFileBrowserComponent::FileChooserFlags(saveChooserFlags | FileBrowserComponent::warnAboutOverwriting); // #endif