HISE Logo Forum
    • Categories
    • Register
    • Login

    Code Editor Not Saving Files

    Scheduled Pinned Locked Moved Bug Reports
    9 Posts 3 Posters 284 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.
    • clevername27C
      clevername27
      last edited by clevername27

      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.

      ustkU 1 Reply Last reply Reply Quote 0
      • ustkU
        ustk @clevername27
        last edited by

        @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.

        Can't help pressing F5 in the forum...

        clevername27C 1 Reply Last reply Reply Quote 2
        • clevername27C
          clevername27 @ustk
          last edited by clevername27

          @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.

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

            @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.

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

            clevername27C 1 Reply Last reply Reply Quote 1
            • clevername27C
              clevername27 @d.healey
              last edited by clevername27

              @d-healey @ustk Thank you for the explanation - much appreciated. I would then qualify this as a (serious) user interface bug.

              ustkU 1 Reply Last reply Reply Quote 0
              • ustkU
                ustk @clevername27
                last edited by ustk

                @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...

                Can't help pressing F5 in the forum...

                1 Reply Last reply Reply Quote 1
                • ustkU
                  ustk
                  last edited by

                  Interesting discovery, though it's always been disabled here and files are still saving on recompile...

                  Screenshot 2023-01-17 at 21.19.59.png

                  Can't help pressing F5 in the forum...

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

                    @ustk This is for connected MIDI processors, not includes.

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

                    ustkU 1 Reply Last reply Reply Quote 2
                    • ustkU
                      ustk @d.healey
                      last edited by ustk

                      @d-healey thanks, the help isn't clear…

                      Can't help pressing F5 in the forum...

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

                      56

                      Online

                      1.7k

                      Users

                      11.7k

                      Topics

                      101.9k

                      Posts