pyVHDLModel icon indicating copy to clipboard operation
pyVHDLModel copied to clipboard

Constant in pkg files cause issues in AnalyzeObjects due to _identifiers vs _identifier

Open Tcenova opened this issue 6 months ago • 3 comments

/python3.11/site-packages/pyVHDLModel/init.py", line 705, in _ImportObjects package._namespace._elements[declaredItem._identifier] = declaredItem ^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'Constant' object has no attribute '_identifier'. Did you mean: '_identifiers'?

I assume this may also cause issues with other elements which use _identifiers. I am not sure how to solve this correctly. I have a local workaround to access the zeroth element of _identifiers for now (when declaredItem has the attr _identifiers).

Tcenova avatar Jul 26 '24 19:07 Tcenova