HISE keeps recreating files I've deleted - or from different projects/snippets
-
When I hit compile HISE recreates scripts that I've deleted. And some of these scripts are from different projects, and were never part of the current project.
-
@d-healey I witnessed this again yesterday as well after renaming a script, the previous one persisted to recreate with the old name despite being renamed in the include line.
This might even be related to https://forum.hise.audio/topic/10665/warning-snippet-browser-overwriting-the-current-project?_=1732196466432
which is a big no-no! Currently to be safe, each time I want to try things, I open an empty project just for this task instead of using the risky SnippetBrowser and see my current project being overwritten... -
@d-healey Same.
-
@Christoph-Hart Can you bump this one up your priority list? Files keep getting created, sometimes empty, sometimes multiple copies of the same files but in different sub-folders, and in the worst cases files get wiped completely - good thing for backups!
-
These errors seem to be related, they occur each time I hit compile
-
I've narrowed the issue down to this commit - https://github.com/christophhart/HISE/commit/00175473082c61c640732e37f6ee1fe453406d90
I'll see if I can find a fix. @ustk Does the problem you're having with the snippet browser occur before this commit?
-
Ok this PR seems to fix the issue for me - https://github.com/christophhart/HISE/pull/634
HISE was resaving all external script files on compile, even if those files no longer existed on disk. I've modified it now to skip saving such files and remove them from the internal file list.
I'm not sure if this solves the issue I had when switching projects, but hopefully it does. If not I'll look into it more.
-
@d-healey Well I don't remember when it first happened, but I'll try your fix asap!
-
@ustk Cool, let me know if it works.
-
@d-healey Nicely done.
-
@ustk said in HISE keeps recreating files I've deleted - or from different projects/snippets:
@d-healey Well I don't remember when it first happened, but I'll try your fix asap!
Did you try it? I'm seeing my files being overwritten by other projects still.