Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syntax errors on time data type #350

Open
phscott99 opened this issue Nov 21, 2024 · 2 comments
Open

Syntax errors on time data type #350

phscott99 opened this issue Nov 21, 2024 · 2 comments

Comments

@phscott99
Copy link

The following line in my testbench causes errors:
wait for 10ns;

The errors are as follows:

Invalid integer character 'n'     vhdl ls(systax_error)
No declaration of 's'             vhdl ls(unresolved)
@Xcodo
Copy link
Contributor

Xcodo commented Nov 21, 2024

See #141.

VHDL-LS only allows for time units separated by a space, which seems to match the VHDL-2008 standard. Some tools allow the space to be omitted.

wait for 10 ns; will not cause the error shown.

@phscott99
Copy link
Author

You're right - I missed that issue.
Feature request for a more descriptive error message?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants