Forum

    • Register
    • Login
    • Search
    • Categories

    Console error - highlight in code

    Feature Requests
    2
    3
    615
    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.
    • d.healey
      d.healey last edited by

      The console gives line and column numbers for error. The line numbers are there in the script editor so that's helpful but there isn't a way (as far as I'm aware) to move the cursor automatically to the column number. It would be good if the right click context menu in the console code be used to select an option to highlight an error's line in the script editor and automatically move the cursor to the indicated column.

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

      1 Reply Last reply Reply Quote 0
      • Christoph Hart
        Christoph Hart last edited by

        Alright, I added this. You can now double click on the console error message and it should jump to the faulty location. It should also handle external files (so when the error occurs in a external file, it will open a popup editor).

        While I was at it, I improved the clarity of some error messages. When a script logic error occurs (eg. noteOff is deprecated...), it didn't print the code location. I needed to inject a tiny overhead to the scripting engine for this because it needs to keep track of the current location, but this will be deactivated when you compile plugins (just like the rest of the scripting safe checks).

        It's getting time for a new build...

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

          This is excellent 🙂

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

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

          16
          Online

          1.1k
          Users

          6.8k
          Topics

          62.5k
          Posts