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

Unexpected include error #77

Closed
taichi-ishitani opened this issue Jun 3, 2021 · 2 comments
Closed

Unexpected include error #77

taichi-ishitani opened this issue Jun 3, 2021 · 2 comments
Assignees

Comments

@taichi-ishitani
Copy link
Contributor

taichi-ishitani commented Jun 3, 2021

I got an unexpected include error when linting SV file which has a macro call of which an argument is another macro like below.

`define PATH_BAR  bar.sv
`define QUATE(path) `"path`"
`include  `QUATE(`PATH_BAR)

unexpected_include_error.tar.gz

I attached a sample test case. You can use reproduce this error by using this:

$ tar -xvf unexpected_include_error.tar.gz
$ cd unexpected_include_error
$ svlint foo.sv

Then you will see the error message below.

Config file '.svlint.toml' is not found. Enable all rules
Error: failed to include '`PATH_BAR'
@taichi-ishitani
Copy link
Contributor Author

taichi-ishitani commented Jun 3, 2021

Following case will also raise a similar error.

`define PATH_BAR bar.sv
`define QUATED_PATH_BAR `"`PATH_BAR`"
`include `QUATED_PATH_BAR 
$ svlint foo.sv
Config file '.svlint.toml' is not found. Enable all rules
Error: failed to include '`PATH_BAR'

@dalance dalance self-assigned this Jun 4, 2021
@DaveMcEwan
Copy link
Contributor

This issue should be raised on sv-parser instead of svlint.
@dalance Would you close this issue?

@dalance dalance closed this as completed Feb 7, 2022
DaveMcEwan added a commit to DaveMcEwan/sv-parser that referenced this issue Jul 26, 2022
- Illustration of dalance/svlint#77
- That's the same as dalance#48
- A,B show what doesn't work, vaguely defined on page 680.
- C,D show what does work, using example on page 680.
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

3 participants