jeremiah-c-leary / vhdl-style-guide

Style guide enforcement for VHDL
GNU General Public License v3.0
179 stars 38 forks source link

fix 'keyError: regexp' by dStyle having parse regexp and dConfig not #1058

Closed SittingDuc closed 7 months ago

SittingDuc commented 7 months ago

Description As noted on issue 1054, I get a Traceback running the branch with a 'pragma' key / 'patterns' sub-key in my configuration.yaml

  File ... /vsg/__main__.py, line 153, in main
    for tResult in pool.imap(f, enumerate(commandLineArguments.filename)):
  File "/usr/lib/python3.10/multiprocessing/pool.py", line 873, in next
    raise value
KeyError: 'regexp'

This patch resolves that, by running add_pragma_regular_expressions on dConfig, not on dStatus.