HISE Logo Forum
    • Categories
    • Register
    • Login

    Javascript syntax error inside laf.registerFunction will not recompile until you reload project

    Scheduled Pinned Locked Moved Bug Reports
    3 Posts 2 Posters 190 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.
    • jonhallurJ
      jonhallur
      last edited by

      If you have a syntax error inside a laf.registerFunction function and get a compile error, the laf you were trying to override will revert to default and will not work again for the remainder of the HISE session (AFAIK).

      You need to fix the error, save your preset and reload it to get the laf override to work again.

      An interesting side note, I found this when copy pasting some graphics code from the drawPath doc example, where the panel.setPaintRoutine has a this which has the function getLocalBounds, but to my surprise, the laf environment does not.

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

        @jonhallur Does the same happen with local LAF?

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

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

          @d-healey I could not recreate the behavior in a Content.createLocalLoockAndFeel()

          I spoke too soon, some errors you can not recover from. Some syntax errors are fine, but when something really does not work, laf will not recover. Looks like if I do actual runtime errors that are syntactically correct the laf reverts to something older, and does not try to recompile the laf function until reload.

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

          19

          Online

          1.7k

          Users

          11.9k

          Topics

          103.6k

          Posts