Hi!
This one might be serious: Right in the middle of the development of a project, the gui-builder “broke down”, meaning, it all of a sudden wasn’t any longer able to open the gui for design. The project itself continued to function, but as the gui was unfinished, this was of no value to me. (Sorry for not being able to produce the error message, but I was in a hurry and had to move on. However, there was an error message about not being able to open the gui.) I am not aware of anything bad or strange or whatever, I might have done. The effect simply wasn’t there – until it was.
I tried to replace the folder GUI_BUILDER_DATA and gui.pde from a backed up project, but to no avail. I ended up deleting folder and file and starting to build the gui from scratch. (This was a bit of a hassle, as in gui.pde sat a few lines of code already.)
However, let me share the work-around, I implemented in case this should occur again (which it didn’t):
I opened another tab “gui_hlp”. In gui, all event procedures do nothing but to call a procedure with the same name as the element, which is, where I put my code now. Like this:
gui:
public void button1_click1(GButton source, GEvent event) { //_CODE_:button1:590660:
println("button1 - GButton >> GEvent." + event + " @ " + millis());
button1();
} //_CODE_:button1:590660:
gui_hlp
public void button1() {
println( "Button clicked." );
}
Besides, I create a zip archive of GUI_BUILDER_DATA, gui.pde and gui_hlp.pde whenever the gui is changed. It turned out that a functioning version of these elements can actually replace existing ones. So, should this ever occur again, I can replace a broken gui with the last working one and have lost no code as it resides elsewhere.
The machine is running Manjaro Linux 23.1.3 with Linux Kernel 6.1.77-2-MANJARO. Processing is build no 1293, G4P 4.3.9.
Hope, this might help someone!
Cheers, Mat