HISE Logo Forum
    • Categories
    • Register
    • Login

    Issue with working with global scripts/recompiling after fixing errors

    Scheduled Pinned Locked Moved Scripting
    10 Posts 2 Posters 118 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.
    • T
      thrice801
      last edited by

      I am working on a hise project, and using global scripts. When I make a code change to the global script, then hit compile; if there were any errors trying to compile, it will get caught in this recursive situation, where when I go to fix the error in the global script and hit compile again, my code in the global script will automatically be reverted back to the erroneous state it was in. (it overwrites the code I just fixed in the global script.) - is there some way to prevent this behavior or something I'm missing?

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

        @thrice801 What do you mean by global script?

        Do you mean external scripts in the global scripts directory?

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

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

          @d-healey said in Issue with working with global scripts/recompiling after fixing errors:

          @thrice801 What do you mean by global script?

          Do you mean external scripts in the global scripts directory?

          Ya I do sorry.

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

            @thrice801 said in Issue with working with global scripts/recompiling after fixing errors:

            where when I go to fix the error in the global script

            Are you editing it within HISE?

            When you hit compile in HISE it saves the scripts.

            Are the scripts added to your project using include statements or are they linked to MIDI processors as external scripts?

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

            T 1 Reply Last reply Reply Quote 0
            • T
              thrice801 @thrice801
              last edited by

              @thrice801 said in Issue with working with global scripts/recompiling after fixing errors:

              @d-healey said in Issue with working with global scripts/recompiling after fixing errors:

              @thrice801 What do you mean by global script?

              Do you mean external scripts in the global scripts directory?

              Ya I do sorry.

              ah ok that could be it, no I was editing the global scripts via atom. I'll try using the editor to edit them and see if I get same result.

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

                @d-healey said in Issue with working with global scripts/recompiling after fixing errors:

                @thrice801 said in Issue with working with global scripts/recompiling after fixing errors:

                where when I go to fix the error in the global script

                Are you editing it within HISE?

                When you hit compile in HISE it saves the scripts.

                Are the scripts added to your project using include statements or are they linked to MIDI processors as external scripts?

                @d-healey Wait, I spoke too soon. I forgot, I was editing via atom, because the hise explorer has my local project files in the tree, and the global script is not referenced there. How would I edit those scripts via the hise editor in the event that I'm not supposed to be editing them with an external editor?

                d.healeyD T 2 Replies Last reply Reply Quote 0
                • d.healeyD
                  d.healey @thrice801
                  last edited by

                  @thrice801 said in Issue with working with global scripts/recompiling after fixing errors:

                  How would I edit those scripts via the hise editor

                  Are the scripts added to your project using include statements or are they linked to MIDI processors as external scripts?

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

                  1 Reply Last reply Reply Quote 0
                  • T
                    thrice801 @thrice801
                    last edited by

                    @thrice801 said in Issue with working with global scripts/recompiling after fixing errors:

                    @d-healey said in Issue with working with global scripts/recompiling after fixing errors:

                    @thrice801 said in Issue with working with global scripts/recompiling after fixing errors:

                    where when I go to fix the error in the global script

                    Are you editing it within HISE?

                    When you hit compile in HISE it saves the scripts.

                    Are the scripts added to your project using include statements or are they linked to MIDI processors as external scripts?

                    @d-healey Wait, I spoke too soon. I forgot, I was editing via atom, because the hise explorer has my local project files in the tree, and the global script is not referenced there. How would I edit those scripts via the hise editor in the event that I'm not supposed to be editing them with an external editor?

                    include statements, i.e.

                    include("{GLOBAL_SCRIPT_FOLDER}helpers.js");
                    include("ui.js");
                    

                    I also just realized, when I try to click on that "ui" file to open it in the code editor (that one is located in the local project scripts folder), it throws a message saying "that file is not included in the current script processor, would you like to add it to your project", and then it copies an include statement to my clipboard, but it just keeps doing that everytime I try to open it. So I must be misunderstanding something or doing something wrong here.

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

                      @thrice801 All included files should be available from the little drop down at the top of the script editor in which they are included.

                      b8625da2-eefd-4895-b95c-73dce3b334df-image.png

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

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

                        @d-healey said in Issue with working with global scripts/recompiling after fixing errors:

                        @thrice801 All included files should be available from the little drop down at the top of the script editor in which they are included.

                        b8625da2-eefd-4895-b95c-73dce3b334df-image.png

                        ahh ok I see thank you! been meaning to subscribe to your patreon gonna do that now

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

                        43

                        Online

                        1.7k

                        Users

                        11.7k

                        Topics

                        101.8k

                        Posts