pyVHDLModel icon indicating copy to clipboard operation
pyVHDLModel copied to clipboard

Subtype resolution is not finding subtype when defined in another pkg file in another library

Open Tcenova opened this issue 6 months ago • 6 comments

/python3.11/site-packages/pyVHDLModel/init.py", line 845, in _LinkItems subtype = package._namespace.FindSubtype(element._subtype) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/python3.11/site-packages/pyVHDLModel/Namespace.py", line 116, in FindSubtype raise KeyError(f"Subtype '{subtypeSymbol._name._identifier}' not found in '{self._name}'.") KeyError: "Subtype 'Subtype_Name' not found in 'pkg_file1'."

Subtype_Name is used in pkg_file1 but is defined in pkg_file2. I am still working through on how it searches for the subtype and why _parentNamespace might be None. Any suggestions on if this is expected to work? Or if not any thoughts on how it could work/be implemented?

Tcenova avatar Jul 26 '24 20:07 Tcenova