You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a file, test.vhd with the following contents:
packagemy_packageisendpackage;
Run vsg -f test.vhd --fix
See the follwing output:
$ ./bin/vsg -f test.vhd --fix
multiprocessing.pool.RemoteTraceback:
"""
Traceback (most recent call last):
File "/usr/lib/python3.10/multiprocessing/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "<path>/bin/../vsg/apply_rules.py", line 125, in apply_rules
oRules.fix(
File "<path>/bin/../vsg/rule_list.py", line 160, in fix
oRule.fix(self.oVhdlFile, dFixOnly)
File "<path>/bin/../vsg/rule.py", line 106, in fix
self.analyze(oFile)
File "<path>/bin/../vsg/rules/align_tokens_in_region_between_tokens_skipping_lines_starting_with_tokens.py", line 65, in analyze
lToi = oFile.get_tokens_bounded_by(self.left_token, self.right_token, bIncludeTillBeginningOfLine=True)
File "<path>/bin/../vsg/vhdlFile/vhdlFile.py", line 231, in get_tokens_bounded_by
return extract.get_tokens_bounded_by(oLeft, oRight, self.lAllObjects, self.oTokenMap, include_trailing_whitespace=include_trailing_whitespace, bExcludeLastToken=bExcludeLastToken, bIncludeTillEndOfLine=bIncludeTillEndOfLine, bIncludeTillBeginningOfLine=bIncludeTillBeginningOfLine)
File "<path>/bin/../vsg/vhdlFile/extract/get_tokens_bounded_by.py", line 53, in get_tokens_bounded_by
oStart = lAllObjects[iStart]
IndexError: list index out of range
"""
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<path>/./bin/vsg", line 15, in <module>
main()
File "<path>/bin/../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
IndexError: list index out of range
The text was updated successfully, but these errors were encountered:
Environment
VHDL Style Guide (VSG) version: 3.20.0.dev5
Git commit SHA: e41bdd8
Describe the bug
The following snippet will cause VSG to fail with a Python error when attempting to fix errors.
I suspect that this is similar to #1091.
To Reproduce
Steps to reproduce the behavior:
vsg -f test.vhd --fix
The text was updated successfully, but these errors were encountered: