HISE Logo Forum
    • Categories
    • Register
    • Login

    QoL compile messages in the console...

    Scheduled Pinned Locked Moved General Questions
    11 Posts 4 Posters 373 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.
    • LindonL
      Lindon
      last edited by

      Is there a way to get rid of thise:

      "Skipping changed() callback during onInit for ..." messages each time I compile...?

      HISE Development for hire.
      www.channelrobot.com

      Oli UllmannO A 2 Replies Last reply Reply Quote 0
      • Oli UllmannO
        Oli Ullmann @Lindon
        last edited by

        @Lindon
        I think only in the source code. But you could put Console.clear() at the end of onInit. This will at least clear it...

        1 Reply Last reply Reply Quote 0
        • A
          aaronventure @Lindon
          last edited by aaronventure

          @Lindon yeah, stop calling .changed() in on init :face_with_tongue:

          If you need the execution, call the function directly.

          Matt_SFM LindonL 2 Replies Last reply Reply Quote 2
          • Matt_SFM
            Matt_SF @aaronventure
            last edited by Matt_SF

            @aaronventure said in QoL compile messages in the console...:

            @Lindon yeah, stop calling .changed() in on init :face_with_tongue:

            If you need the execution, call the function directly.

            Yes but what if you're calling .changed() in a CB?
            If the component is set to 'saveInPreset', the CB will be executed and .changed() will be called...

            Develop branch
            Win10 & VS17 / Ventura & Xcode 14. 3

            A 1 Reply Last reply Reply Quote 2
            • A
              aaronventure @Matt_SF
              last edited by

              @Matt_SF is that also where it triggers? I'll take my jokes elsewhere.

              Matt_SFM 1 Reply Last reply Reply Quote 0
              • Matt_SFM
                Matt_SF @aaronventure
                last edited by

                @aaronventure No worries :) But yes, and it lead me to wonder if we should avoid calling this function when possible. Of course it depends on what you want to do in your project (on Init or not), but it's convenient to use...
                I remember this was discussed on the forum some time ago but I couldn't fint it.

                Develop branch
                Win10 & VS17 / Ventura & Xcode 14. 3

                A 1 Reply Last reply Reply Quote 0
                • A
                  aaronventure @Matt_SF
                  last edited by

                  @Matt_SF I remember asking for a Engine.isInitialized() method that would return true after init is done and all saved components have been called, but no response from @Christoph-Hart

                  This would easily allow for gating in these scenarios, and others. Changed() has use beyond just calling the function, it sets focus to the component and sets the last touched envelope for the DAW,

                  Matt_SFM LindonL 2 Replies Last reply Reply Quote 1
                  • Matt_SFM
                    Matt_SF @aaronventure
                    last edited by

                    This would easily allow for gating in these scenarios, and others. Changed() has use beyond just calling the function, it sets focus to the component and sets the last touched envelope for the DAW,

                    Ah thanks, I didn't know that

                    Develop branch
                    Win10 & VS17 / Ventura & Xcode 14. 3

                    1 Reply Last reply Reply Quote 0
                    • LindonL
                      Lindon @aaronventure
                      last edited by

                      @aaronventure said in QoL compile messages in the console...:

                      @Lindon yeah, stop calling .changed() in on init :face_with_tongue:

                      If you need the execution, call the function directly.

                      Ha ha..., but as you may have gathered - Im not calling changed() in init, its in the CB for widgets... so if Im using the console.print() as some sort of debugging aid - I get a truck load of these messages that completely obscure what Im trying to read - making Console.print() nearly useless for debugging...

                      HISE Development for hire.
                      www.channelrobot.com

                      A 1 Reply Last reply Reply Quote 0
                      • A
                        aaronventure @Lindon
                        last edited by aaronventure

                        @Lindon yeah I think in this case Engine.isInitialized or similar would solve multiple issues including this one.

                        1 Reply Last reply Reply Quote 0
                        • LindonL
                          Lindon @aaronventure
                          last edited by

                          @aaronventure said in QoL compile messages in the console...:

                          @Matt_SF I remember asking for a Engine.isInitialized() method that would return true after init is done and all saved components have been called, but no response from @Christoph-Hart

                          This would easily allow for gating in these scenarios, and others. Changed() has use beyond just calling the function, it sets focus to the component and sets the last touched envelope for the DAW,

                          yeah - -but this doesnt work...If Im trying to debug something in the widget on init, then I have no way of gating so it appears and the messages dont, same for Olie's solution to Console.clear() - now I cant debug init phase events...

                          Nope - I would like it to go back to the old way where this message wasnt shown - Im more than happy to have some pre-processor compile time definition for this SHOW_INIT_SKIP_MESSAGES = 0
                          @Christoph-Hart ???

                          HISE Development for hire.
                          www.channelrobot.com

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

                          23

                          Online

                          1.8k

                          Users

                          12.0k

                          Topics

                          104.6k

                          Posts