Forum

    • Register
    • Login
    • Search
    • Categories

    Code Editor Not Saving Files

    Bug Reports
    3
    9
    77
    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.
    • clevername27
      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.

      ustk 1 Reply Last reply Reply Quote 0
      • ustk
        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.

        I cannot help pressing F5 in the forum...
        Studio427 Audio - Audio Instruments & FX Plugins for music production. Website - Facebook

        clevername27 1 Reply Last reply Reply Quote 2
        • clevername27
          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.healey 1 Reply Last reply Reply Quote 1
          • d.healey
            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

            clevername27 1 Reply Last reply Reply Quote 1
            • clevername27
              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.

              ustk 1 Reply Last reply Reply Quote 0
              • ustk
                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...

                I cannot help pressing F5 in the forum...
                Studio427 Audio - Audio Instruments & FX Plugins for music production. Website - Facebook

                1 Reply Last reply Reply Quote 1
                • ustk
                  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

                  I cannot help pressing F5 in the forum...
                  Studio427 Audio - Audio Instruments & FX Plugins for music production. Website - Facebook

                  d.healey 1 Reply Last reply Reply Quote 2
                  • d.healey
                    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

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

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

                      I cannot help pressing F5 in the forum...
                      Studio427 Audio - Audio Instruments & FX Plugins for music production. Website - Facebook

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

                      14
                      Online

                      977
                      Users

                      6.6k
                      Topics

                      60.5k
                      Posts