Skip to content

Semi-colon at end of generic list in entity declaration causes issues with when selecting "--fix" option. #1478

@jamesglong

Description

@jamesglong

Environment
Gentoo Linux

Describe the bug
Having a semi colon at the end of the generic list is a syntax error in VHDL. However, the VSG tool does not flag it as such. This is not the problem, just a data point.

When I incorrectly added the semi-colon and used the command line with the --fix option selected, the tool applied some unexpected formatting changes and returned an unexpected error.

reserved_001 | Error | 18 | Invalid use of reserved word PORT

Screenshots
Code with syntax error (red), before any --fix options selected. Redacted some things in black.

Image

Code with syntax after running --fix and then associated error. notice the semi-colon persists and now everything in the port list is capitalized.

Image Image

and finally the expected fix (not shown) occurs after removing the incorrect semi-colon and re-running the tool.

Expected behavior
I would expect the tool to flag the incorrect semi-colon. and otherwise not parse/format the file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions