Uploaded image for project: 'Qt for Python'
  1. Qt for Python
  2. PYSIDE-619

Signature parser fails for enum classes

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Fixed
    • Affects Version/s: 5.9
    • Fix Version/s: None
    • Component/s: PySide
    • Labels:
    • Environment:
      Linux, Python 3

      Description

      With the patches starting at https://codereview.qt-project.org/#/c/221293/ , the signature generation fails for Qt 5.11 with the newly introduced enum class CheckOption (QAbstractItemModel) (see https://codereview.qt-project.org/#/c/221039/ ):

      RUN 1: 
      RUN 1: FAILED (errors=1)
      RUN 1: 
      RUN 1:         Start  20: pysidetest_qapp_like_a_macro_test
      RUN 1:  20/420 Test  #20: pysidetest_qapp_like_a_macro_test ...............   Passed    0.18 sec
      RUN 1:         Start  21: registry_signature_test
      RUN 1:  21/420 Test  #21: registry_signature_test .........................***Failed    0.88 sec
      RUN 1: .../pyside-setup59_511s/testenv59_511s_33_build/py3.6-qt5.11.0-64bit-release/pyside2/PySide2/support/signature/parser.py:16
      8: RuntimeWarning: pyside_type_init:
      RUN 1: 
      RUN 1:         UNRECOGNIZED:   'CheckIndexOption.NoOption'
      RUN 1:         OFFENDING LINE: 'PySide2.QtCore.QAbstractItemModel.checkIndex(index:PySide2.QtCore.QModelIndex,options:PySide2.QtCore.QAbstract
      ItemModel.CheckIndexOptions=CheckIndexOption.NoOption)->bool'
      RUN 1: 
      RUN 1:   """.format(thing, line), RuntimeWarning)
      RUN 1: E....
      RUN 1: ======================================================================
      RUN 1: ERROR: testAllSignaturesCanBuild (__main__.PySideSignatureTest)
      RUN 1: ----------------------------------------------------------------------
      RUN 1: Traceback (most recent call last):
      RUN 1:   File ".../pyside-setup59_511s/testenv59_511s_33_build/py3.6-qt5.11.0-64bit-release/pyside2/PySide2/support/signature/pars
      er.py", line 213, in pyside_type_init
      RUN 1:     props = calculate_props(line)
      RUN 1:   File ".../pyside-setup59_511s/testenv59_511s_33_build/py3.6-qt5.11.0-64bit-release/pyside2/PySide2/support/signature/pars
      er.py", line 176, in calculate_props
      RUN 1:     res = _parse_line(line)
      RUN 1:   File ".../pyside-setup59_511s/testenv59_511s_33_build/py3.6-q
      

        Attachments

          Issue Links

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

            Activity

              People

              • Assignee:
                ctismer Christian Tismer
                Reporter:
                kleint Friedemann Kleint
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes