Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-44817

qdoc does not parse .pragma lines in javascript files

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Done
    • Affects Version/s: 5.5.0 Alpha
    • Fix Version/s: 5.5.0 Alpha
    • Component/s: Build tools: qdoc
    • Labels:
      None
    • Commits:
      7cab512a8a466ad66f8f8fc5e8fa734e83765f6f

      Description

      Using for example the module QtQuick.Controls

      $ make html_docs

      in qtquickcontrols/src/controls

      return the errors:

      qdoc: warning: Unable to parse JavaScript: "Syntax error" at line 41, column 1
      qdoc: warning: Unable to parse JavaScript: "Syntax error" at line 41, column 1
      qdoc: warning: Unable to parse JavaScript: "Syntax error" at line 41, column 1
      qdoc: warning: Unable to parse JavaScript: "Syntax error" at line 41, column 1
      

      It seems those errors are caused by UI.js files located under
      qtquickcontrols/examples/quick/controls/gallery:

      • qml
      • qml/+android
      • qml/+osx
      • qml/+ios

      which have .pragma library line 41 (would be nice to have the path to the file causing the problem in the warning output )

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            gbk Martin Smith (Qt)
            Reporter:
            carochao Caroline Chao (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes