HISE Logo Forum
    • Categories
    • Register
    • Login

    Coding in VS Code and HISE

    Scheduled Pinned Locked Moved Scripting
    9 Posts 5 Posters 87 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.
    • VirtualVirginV
      VirtualVirgin
      last edited by

      I am having issues that when I edit .js include files in VS Code, then hit "compile" in HISE, the .js files sometimes revert their changes, and I'm guessing this is from some cached version of the file in HISE which takes precedence. Is there some way to avoid this problem? Is there a setting to change or a workflow to adopt that will keep the changes made to the .js in VS Code?

      You can listen to my orchestral mockups here:
      https://www.virtualvirgin.net/

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

        @VirtualVirgin When you click compile in HISE (or press F5), HISE will save the contents of the code editor to the file.

        When you edit a file outside of HISE, HISE does not see the changes until you close and reopen the project. It doesn't watch for changes made externally.

        Free HISE Bootcamp Full Course for beginners.
        YouTube Channel - Public HISE tutorials
        My Patreon - HISE tutorials

        VirtualVirginV Dan KorneffD dannytaurusD 3 Replies Last reply Reply Quote 0
        • VirtualVirginV
          VirtualVirgin @d.healey
          last edited by

          @d-healey I'm finding that HISE sometimes does take the changes made in VS Code at other times not. At this point in time I have not figured out the conditions which cause this however. I would like to continue editing in VS Code and then check out the changes by compiling in HISE. Seems kind of silly to cut and paste the entire script over to HISE no?

          You can listen to my orchestral mockups here:
          https://www.virtualvirgin.net/

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

            @VirtualVirgin said in Coding in VS Code and HISE:

            Seems kind of silly to cut and paste the entire script over to HISE no?

            alt text

            HISE is really designed with the intention that you use its own editor.

            Free HISE Bootcamp Full Course for beginners.
            YouTube Channel - Public HISE tutorials
            My Patreon - HISE tutorials

            Oli UllmannO 1 Reply Last reply Reply Quote 3
            • Oli UllmannO
              Oli Ullmann @d.healey
              last edited by

              @d-healey
              😂

              1 Reply Last reply Reply Quote 0
              • Dan KorneffD
                Dan Korneff @d.healey
                last edited by

                @d-healey actually, I think it checks for updated scripts every 3 seconds or something like that.
                I'm editing in VS code as well and sometimes see this happen.
                I can't go back to the internal editor unless it integrates CoPilot.

                Dan Korneff - Producer / Mixer / Audio Nerd

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

                  @Dan-Korneff said in Coding in VS Code and HISE:

                  I think it checks for updated scripts every 3 seconds or something like that.

                  Last time I looked into it there wasn't one, but maybe Christoph added it

                  Free HISE Bootcamp Full Course for beginners.
                  YouTube Channel - Public HISE tutorials
                  My Patreon - HISE tutorials

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

                    @d-healey said in Coding in VS Code and HISE:

                    When you click compile in HISE (or press F5), HISE will save the contents of the code editor to the file.

                    Does this mean if a file is open in the HISE editor and you hit Compile, it will save over any changes you've made to the same file in an external editor?

                    Meat Beats: https://meatbeats.com
                    Klippr Video: https://klippr.video

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

                      @dannytaurus Yes

                      Free HISE Bootcamp Full Course for beginners.
                      YouTube Channel - Public HISE tutorials
                      My Patreon - HISE tutorials

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

                      24

                      Online

                      2.0k

                      Users

                      12.7k

                      Topics

                      109.8k

                      Posts