Code Editor Not Saving Files
-
I've been experiencing the code editor sometimes not updating files when I save. This leads to error reports based on the saved files—not what I see on the screen.
One thing I've noticed is there's a bug in how the editor breaks the Interface file into multiple files within the editor—text saved in one section will get pushed to another.
I'm on macOS Montery, running on an M1. I recently updated my HISE build to the latest stable, but there's been no change in the described behaviour.
Any ideas?
Thanks.
-
@clevername27 The normal behaviour when saving is that only the embedded script are saved, not the external ones. External script are automatically overwritten when recompiling, if it has the focus. Or when you recompile where the « include » is originated. For instance if you recompile the oninit, its included scripts will be saved.
-
@ustk Thank you for your reply. Are you saying that when saving, the code in open tabs may not be saved? I think a salient question here is, "What does it mean to save?" The menu choices are the archive or the XML—there seems to be some ambiguity as to why both choices are present. Neither makes a reference to the code editor—I see no menu option to save code.
-
@clevername27 If it's an included script it will be written to the file when you hit compile. If it's not an included script - code written in one of the default callbacks (on init, on note on, etc) it is saved when you save the project XML or .hip.
-
-
@clevername27 Well I understand that it can be confusing at first but I think we're all very used to it. Now that doesn't mean it never has to change but there might be a good reason behind if it never did...
Though I agree sometimes I'd like it to behave differently. Especially when I want to test large changes in included files. If Hise crashes after you recompiled, adios to the undo manager...
-
Interesting discovery, though it's always been disabled here and files are still saving on recompile...
-
@ustk This is for connected MIDI processors, not includes.
-
@d-healey thanks, the help isn't clear…