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

Signature parser fails for enum classes

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P1: Critical
    • None
    • 5.9
    • PySide
    • 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

              ctismer Christian Tismer
              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