HISE ignoring script edits except on startup?
-
HISE has suddenly starting ignoring edits to scripts made in external editors. I’ll edit a script in Sublime (or TextEdit or any other editor), save it, then hit compile in HISE, but the changes won’t take effect until I restart HISE. If I open the script in HISE’s editor and edit it there, it works fine.
The “Save connected files on compile” option in Project Settings has no effect on this. I also recompiled from the source code I had (from 4/29), then tried again using the most recent version of HISE (develop branch) to no avail. I also deleted the config files at ~/Library/Application Support/HISE and let them regenerate themselves… Are there more files somewhere else? (I’m on Mac.)
This just started suddenly yesterday after I’d already been working in HISE for hours. I didn’t notice anything weird, my changes just stopped showing up. No clue what I could’ve possibly done! Any ideas?
-
@ally I've had the same experience with the latest Dev build I compiled. I assumed it was something I wasn't doing correctly. And still may be. Saving is weird is in HISE. How experienced are you with HISE?
-
@clevername27 About 3 years in... I've definitely experienced some weird saving things before but nothing like this! When did you compile last?
-
@ally April 27th, 2024. macOS. I had to stop using an external text editor.
-
Ah yes that might be a regression from embedding the script files in a snippet. I'll investigate.
-
Alright, this is fixed now, files will check every 3 seconds and reload if they are edited externally.
-
@Christoph-Hart Is there an option for auto compile on file save in external editor?
(Reload and Compile) -
@sakorada I don't think so, but you could write a script for your OS that monitors the individual files in a directory, and sends a key command for F5 whenever there's a change.
-
@Christoph-Hart Woohoo, perfect! Thank you!