Forum

    • Register
    • Login
    • Search
    • Categories

    "{PROJECT_FOLDER}" Does Not Resolve on macOS when Importing Scripts

    Bug Reports
    3
    8
    51
    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

      Pretty much that. (Work-around is to simply use the the script's name, and ensure the scripts are at the top level of your Scripts folder.)

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

        @clevername27 Unless it's just a typo in the topic's name, it should be {PROJECT_FOLDER}
        but if your script is in a sub folder it should just be include("mySubFolder/myScript.js");. there's no need for {PROJECT_FOLDER}

        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 1
        • clevername27
          clevername27 @ustk last edited by clevername27

          @ustk Thank you for your response and the correction. (I've updated the title.) Yes, there are work-arounds, but it's a still a bug. Specifically, the scripts will load within HISE. and you can compile. The compiled plugin may work-partially. But not completely. I'm not complaining—the source code is available if I want to fix it. I'm simply posting this so other people don't spend two weeks trying to figure out what's going on in their own code. Thank you again for your response and suggestion.

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

            @clevername27 I'm not 100% sure to understand. Where are your scripts located?

            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 1
            • clevername27
              clevername27 @ustk last edited by

              @ustk Thank you for your question. They're in the Scripts folder.

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

                Same as this one I believe - https://forum.hise.audio/topic/4927/project_folder-for-includes?_=1673027391165

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

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

                  @clevername27 @d-healey But why would you use "{PROJECT_FOLDER}" anyway?
                  When you "Move selection to external file", Hise does not add it...

                  Well maybe it is just that you are used to add it for many things, but since I always create external files from the right click in the code editor, I never had the habit to see the project folder wildcard...

                  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 1
                  • d.healey
                    d.healey @ustk last edited by

                    @ustk

                    Well maybe it is just that you are used to add it for many things

                    This reason. And then once you've done it you don't realise your mistake until weeks later when you go to compile and nothing works 😛

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

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

                    18
                    Online

                    982
                    Users

                    6.6k
                    Topics

                    60.8k
                    Posts