xbrlus / xule

An open-source XBRL processor for business rules, rendering and custom data reporting. See https://xbrl.us/xule for documentation and https://xbrl.us/xule-editor for a VS Code syntax highlighter.
Apache License 2.0
24 stars 10 forks source link

AttributeError: object has no attribute 'semantic_hash_string' #30

Closed austinmatherne-wk closed 2 weeks ago

austinmatherne-wk commented 2 months ago

The issue was initially reported in the Arelle users group. The semanticHash plugin attempts to access the undefined semantic_hash_string option, as seen here. It's important to note that getattr(x, y) functions the same as direct attribute access (x.y) and will raise an attribute error if a default value is not provided (getattr(x, y, None)).

<entry code="AttributeError" level="critical">
        <message>2024-09-09 12:05:58,823 [AttributeError] [Exception] Failed to complete request:
'RuntimeOptions' object has no attribute 'semantic_hash_string'
['  File &quot;D:\\a\\Arelle\\Arelle\\arelle\\CntlrCmdLine.py&quot;, line 1172, in run\n', '  File &quot;C:\\Program Files\\Arelle\\plugin\\semanticHash.py&quot;, line 60, in semanticHashRun\n    if getattr(options, &quot;semantic_hash&quot;, False) or getattr(options, &quot;semantic_hash_string&quot;) is not None:\n                                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n'] -
        </message>
</entry>