Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.10
    • Fix Version/s: 0.11
    • Component/s: Python Tools
    • Labels:
      None
    • Environment:

      Fedora 14

      Description

      I have:

      cat schema-1.xml
      <schema package="org.foobar">
      <class name="apple">
      <method name="rott" desc="rott">
      <arg name="speed" dir="I" type="uint32"/>
      <arg name="review" dir="O" type="sstr"/>
      </method>
      </class>
      </schema>

      Then I run "qmf-gen -2 schema-1.xml"
      Traceback (most recent call last):
      File "/usr/bin/qmf-gen", line 80, in <module>
      gen.makeV2PackageFile("V2Package.cpp", package, vars=vargs)
      File "/usr/lib/python2.7/site-packages/qmfgen/generate.py", line 467, in makeV2PackageFile
      stream = template.expand (schema)
      File "/usr/lib/python2.7/site-packages/qmfgen/generate.py", line 100, in expand
      self.expandLine (line, stream, object)
      File "/usr/lib/python2.7/site-packages/qmfgen/generate.py", line 88, in
      expandLine
      self.handler.substHandler (object, stream, tagObject, tagName)
      File "/usr/lib/python2.7/site-packages/qmfgen/generate.py", line 392, in
      substHandler
      eval (call)
      File "<string>", line 1, in <module>
      File "/usr/lib/python2.7/site-packages/qmfgen/schema.py", line
      1734, in genV2ClassDefines
      if stat.unit:
      UnboundLocalError: local variable 'stat' referenced before assignment

        Activity

        Angus Salkeld created issue -
        Angus Salkeld made changes -
        Field Original Value New Value
        Attachment 0001-Fix-crash-in-qmfgen-2.patch [ 12474227 ]
        Ted Ross made changes -
        Assignee Ted Ross [ tedross ]
        Ted Ross made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 0.11 [ 12316272 ]
        Fix Version/s Future [ 12315490 ]
        Resolution Fixed [ 1 ]
        Justin Ross made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Ted Ross
            Reporter:
            Angus Salkeld
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development