HISE Logo Forum
    • Categories
    • Register
    • Login

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

    Scheduled Pinned Locked Moved Bug Reports
    8 Posts 3 Posters 289 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

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

      ustkU 1 Reply Last reply Reply Quote 0
      • ustkU
        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}

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

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

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

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

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

            clevername27C 1 Reply Last reply Reply Quote 1
            • clevername27C
              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.healeyD
                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
                • ustkU
                  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...

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

                  d.healeyD 1 Reply Last reply Reply Quote 1
                  • d.healeyD
                    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 :p

                    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

                    36

                    Online

                    1.7k

                    Users

                    11.7k

                    Topics

                    102.0k

                    Posts