HISE Logo Forum
    • Categories
    • Register
    • Login

    Script directory is renamed to 'TempScriptDirectory' when saving XML

    Scheduled Pinned Locked Moved Unsolved Bug Reports
    21 Posts 4 Posters 2.1k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Christoph HartC
      Christoph Hart @d.healey
      last edited by

      @d-healey said in Script directory is renamed to 'TempScriptDirectory' when saving XML:

      TempScriptDirectory

      ah fail, I looked in the wrong project (a compiled one). makes sense now.

      @Orvillain have you opened the script files in another editor? It tries to replace the files but if it fails (most likely because they are opened somewhere), it stops at the TempScriptDirectory folder.

      d.healeyD O 2 Replies Last reply Reply Quote 0
      • d.healeyD
        d.healey @Christoph Hart
        last edited by

        @Christoph-Hart As I put in my other thread, I was getting the same error even though the files weren't open anywhere else. Could it be because I had them open in other script tabs? I haven't seen this error for a while.

        Libre Wave - Freedom respecting instruments and effects
        My Patreon - HISE tutorials
        YouTube Channel - Public HISE tutorials

        1 Reply Last reply Reply Quote 0
        • O
          Orvillain @Christoph Hart
          last edited by Orvillain

          @Christoph-Hart

          Unfortunately not, no. Nothing so simple!

          Only HISE is open.

          I'm on Windows 11 if that helps, running HISE:
          17307b2c-5af9-4354-a668-1c1ccaf23401-image.png

          1 Reply Last reply Reply Quote 0
          • Dan KorneffD
            Dan Korneff
            last edited by

            I've been experiencing this as well. Scripts don't update when I hit compile... and then the main script gets moved to a temp folder. I haven't had time to investigate yet

            Dan Korneff - Producer / Mixer / Audio Nerd

            O 1 Reply Last reply Reply Quote 0
            • O
              Orvillain @Dan Korneff
              last edited by

              @Christoph-Hart

              Getting this a lot. Sometimes files even disappear outright. I've just lost an Interface.js altogether for example.

              Could it have anything to do with there being hypens in the folder directory structure?

              d.healeyD 1 Reply Last reply Reply Quote 0
              • d.healeyD
                d.healey @Orvillain
                last edited by

                @Orvillain I think Christoph fixed this today, have you built the latest commits?

                Libre Wave - Freedom respecting instruments and effects
                My Patreon - HISE tutorials
                YouTube Channel - Public HISE tutorials

                O 1 Reply Last reply Reply Quote 1
                • O
                  Orvillain @d.healey
                  last edited by

                  @d-healey ooooo, no I haven't! I will do so!

                  Christoph HartC 1 Reply Last reply Reply Quote 0
                  • Christoph HartC
                    Christoph Hart @Orvillain
                    last edited by

                    @Orvillain Not sure if it fixes this issue, but I fixed the reload bug when using an external editor.

                    O 1 Reply Last reply Reply Quote 0
                    • O
                      Orvillain @Christoph Hart
                      last edited by

                      @Christoph-Hart

                      I'll check it out. The only oddity I can think of is, my repository has hypens in the name:
                      drew-hise-experiments

                      And some of my projects also have hypens in the name:
                      pad-sampler-test

                      etc etc.

                      Don't know if there is maybe a parsing issue going on when you do a save operation?

                      O 1 Reply Last reply Reply Quote 0
                      • O
                        Orvillain @Orvillain
                        last edited by

                        @Christoph-Hart

                        Unfortunately, this is still an issue. I rebuilt the latest HISE on the 17th at least, and this still happens. Nothing to do with hypens being in the name of folders or anything either.

                        Dan KorneffD 1 Reply Last reply Reply Quote 0
                        • Dan KorneffD
                          Dan Korneff @Orvillain
                          last edited by

                          @Orvillain are you working on a network drive?

                          Dan Korneff - Producer / Mixer / Audio Nerd

                          O 1 Reply Last reply Reply Quote 0
                          • O
                            Orvillain @Dan Korneff
                            last edited by

                            @Dan-Korneff
                            I'm not no, but all my dev stuff is on my H: drive which is an internal SATA drive.

                            O 1 Reply Last reply Reply Quote 0
                            • O
                              Orvillain @Orvillain
                              last edited by

                              Still getting this even with a commit from the 28th of May.

                              1 Reply Last reply Reply Quote 0
                              • O Orvillain marked this topic as a question on
                              • d.healeyD
                                d.healey
                                last edited by d.healey

                                This has reappeared for me again. If I have a project and I add a sampler to it and load a sample map, when I go to save the xml I get this error and I can't save a .hip at all. It just says in the console that it's saved to the project's Presets folder, but nothing is in there.

                                This doesn't happen with a new project, but once the project is closed and reopened it happens.

                                Edit: Ahhhh if I remove the setAllowDuplicateSamples line then I don't get this either... everything's connected :( https://forum.hise.audio/topic/10719/allowduplicatesamples-causing-crash

                                Libre Wave - Freedom respecting instruments and effects
                                My Patreon - HISE tutorials
                                YouTube Channel - Public HISE tutorials

                                d.healeyD 1 Reply Last reply Reply Quote 0
                                • d.healeyD
                                  d.healey @d.healey
                                  last edited by d.healey

                                  @Christoph-Hart This is still happening and it's super annoying because there's no way to save your work. You have to copy your script to a text file and close/reopen HISE then paste in your script and hope that you copied everything you needed.

                                  I took a brief look at the source where this is happening - you love your nests :) - I see a couple of calls to deleteRecursively(); which spook me, why are things beings deleted when I try to save a file??? Ok, after stepping through the code I see what's happening here.

                                  There are no external scripts in the test project I'm working on, just the interface script, nothing fancy.

                                  473a83b1-8a79-422a-8957-9abfe7964c69-image.png

                                  Something I've noticed while trying to debug:

                                  • When the issue occurs the script file (Interface.js in this case) is not created in the Temporary directory.

                                  Libre Wave - Freedom respecting instruments and effects
                                  My Patreon - HISE tutorials
                                  YouTube Channel - Public HISE tutorials

                                  d.healeyD 1 Reply Last reply Reply Quote 0
                                  • d.healeyD
                                    d.healey @d.healey
                                    last edited by

                                    I spent a few hours on this last night but couldn't solve it, I can't figure out why the temp file isn't being created. But I did unravel your nest to make it easier to follow the flow - https://github.com/christophhart/HISE/pull/651

                                    Libre Wave - Freedom respecting instruments and effects
                                    My Patreon - HISE tutorials
                                    YouTube Channel - Public HISE tutorials

                                    1 Reply Last reply Reply Quote 0
                                    • First post
                                      Last post

                                    30

                                    Online

                                    1.8k

                                    Users

                                    12.0k

                                    Topics

                                    104.5k

                                    Posts