pyxtuml prebuild cannot discriminate a fully qualified constant specification from an enumeration.
Consider a constant specification TimeConversion with constants.
and the following action language.
The lines commented out cause pyxtuml.prebuild a problem.
Here is the stack trace. Notice accept_EnumNode.
[INFO] Performing pyxtuml pre-build...
[ERROR] Traceback (most recent call last):
[ERROR] File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 174, in _run_module_as_main
[ERROR] "__main__", fname, loader, pkg_name)
[ERROR] File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 72, in _run_code
[ERROR] exec code in run_globals
[ERROR] File "/Library/Python/2.7/site-packages/pyxtuml-2.1a0-py2.7.egg/bridgepoint/prebuild.py", line 1914, in <module>
[ERROR] main()
[ERROR] File "/Library/Python/2.7/site-packages/pyxtuml-2.1a0-py2.7.egg/bridgepoint/prebuild.py", line 1908, in main
[ERROR] prebuild_model(m)
[ERROR] File "/Library/Python/2.7/site-packages/pyxtuml-2.1a0-py2.7.egg/bridgepoint/prebuild.py", line 1873, in prebuild_model
[ERROR] prebuild_action(inst)
[ERROR] File "/Library/Python/2.7/site-packages/pyxtuml-2.1a0-py2.7.egg/bridgepoint/prebuild.py", line 1851, in prebuild_action
[ERROR] return walker.accept(root)
[ERROR] File "/Library/Python/2.7/site-packages/pyxtuml-2.1a0-py2.7.egg/xtuml/tools.py", line 220, in accept
[ERROR] r = fn(node, **kwargs)
[ERROR] File "/Library/Python/2.7/site-packages/pyxtuml-2.1a0-py2.7.egg/bridgepoint/prebuild.py", line 1562, in accept_BodyNode
[ERROR] return ActionPrebuilder.accept_BodyNode(self, node)
[ERROR] File "/Library/Python/2.7/site-packages/pyxtuml-2.1a0-py2.7.egg/bridgepoint/prebuild.py", line 439, in accept_BodyNode
[ERROR] self.accept(node.block.statement_list)
[ERROR] File "/Library/Python/2.7/site-packages/pyxtuml-2.1a0-py2.7.egg/xtuml/tools.py", line 220, in accept
[ERROR] r = fn(node, **kwargs)
[ERROR] File "/Library/Python/2.7/site-packages/pyxtuml-2.1a0-py2.7.egg/bridgepoint/prebuild.py", line 458, in accept_StatementListNode
[ERROR] act_smt = self.accept(child)
[ERROR] File "/Library/Python/2.7/site-packages/pyxtuml-2.1a0-py2.7.egg/xtuml/tools.py", line 220, in accept
[ERROR] r = fn(node, **kwargs)
[ERROR] File "/Library/Python/2.7/site-packages/pyxtuml-2.1a0-py2.7.egg/bridgepoint/prebuild.py", line 781, in accept_AssignmentNode
[ERROR] v_val_r = self.accept(node.expression)
[ERROR] File "/Library/Python/2.7/site-packages/pyxtuml-2.1a0-py2.7.egg/xtuml/tools.py", line 220, in accept
[ERROR] r = fn(node, **kwargs)
[ERROR] File "/Library/Python/2.7/site-packages/pyxtuml-2.1a0-py2.7.egg/bridgepoint/prebuild.py", line 1009, in accept_BinaryOperationNode
[ERROR] v_val_r = self.accept(node.right)
[ERROR] File "/Library/Python/2.7/site-packages/pyxtuml-2.1a0-py2.7.egg/xtuml/tools.py", line 220, in accept
[ERROR] r = fn(node, **kwargs)
[ERROR] File "/Library/Python/2.7/site-packages/pyxtuml-2.1a0-py2.7.egg/bridgepoint/prebuild.py", line 1009, in accept_BinaryOperationNode
[ERROR] v_val_r = self.accept(node.right)
[ERROR] File "/Library/Python/2.7/site-packages/pyxtuml-2.1a0-py2.7.egg/xtuml/tools.py", line 220, in accept
[ERROR] r = fn(node, **kwargs)
[ERROR] File "/Library/Python/2.7/site-packages/pyxtuml-2.1a0-py2.7.egg/bridgepoint/prebuild.py", line 1109, in accept_EnumNode
[ERROR] relate(v_val, s_dt, 820)
[ERROR] File "/Library/Python/2.7/site-packages/pyxtuml-2.1a0-py2.7.egg/bridgepoint/prebuild.py", line 43, in relate
[ERROR] assert xtuml.relate(*args, **kwargs)
[ERROR] AssertionError
[ERROR] pyxtuml exited with code 1