Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Custom parser fails to capture QML errors from application output

Custom parser fails to capture QML errors from application output

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
customparsers
6 Posts 3 Posters 137 Views 1 Watching
  • 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.
  • SebastianMS Offline
    SebastianMS Offline
    SebastianM
    wrote last edited by SebastianM
    #1

    Hi,
    I would like to capture and show all warning and errors from QML application run.
    In Edit -> Preferences -> Build & Run -> Custom Output Parsers I added new parser, set ^.*(qrc:.*?):(\d*):?\d*?: (.*) as capture pattern on std output and error.
    Test line from logs is correctly matched.
    (Screenshot 2026-02-07 232256.png
    Parser has Run default checked - so according to my understanding - it should parser this what I see in Application Output bottom pane.
    Additionaly - in Projects panels, Run Settings tab inside Custom Output Parsers my parser is explicitly selected as active.
    Yet, despite 10+ entries about missing image, url or binding loops - nothing shows up inside Issues bottom pane.

    How to make output log entries like [2026-02-06 08:54:26.492][WARN]: qrc:/qt/qml/Initialization.qml:15:5: QML QQuickImage: Cannot open: be visible in Issues pane?

    1 Reply Last reply
    0
    • aha_1980A Offline
      aha_1980A Offline
      aha_1980
      Lifetime Qt Champion
      wrote last edited by
      #2

      Hi @SebastianM,

      have you already tried to set the pattern on the "Error" tab?

      Regards

      Qt has to stay free or it will die.

      1 Reply Last reply
      0
      • SebastianMS Offline
        SebastianMS Offline
        SebastianM
        wrote last edited by
        #3

        @aha_1980 Unfortunately- no, nothing change. Still lacks of issues.
        I moved patter from warnings tab to error.

        1 Reply Last reply
        0
        • aha_1980A Offline
          aha_1980A Offline
          aha_1980
          Lifetime Qt Champion
          wrote last edited by
          #4

          @SebastianM Which Qt Creator version is that?

          Qt has to stay free or it will die.

          1 Reply Last reply
          0
          • GrecKoG Offline
            GrecKoG Offline
            GrecKo
            Qt Champions 2018
            wrote last edited by
            #5

            From what I understood, if the line is already parsed by Qt Creator as an error/warning it won't be passed to your custom output parsers.

            1 Reply Last reply
            0
            • SebastianMS Offline
              SebastianMS Offline
              SebastianM
              wrote last edited by
              #6

              Qt Creator v18.0.1.
              Qt Creator nicely captures and presents errors from BUILD time.
              However, not from RUNTIME.

              1 Reply Last reply
              0

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved