-
-
Notifications
You must be signed in to change notification settings - Fork 83
[BUG] Verilator logger doesn't ouput warnings/errors unless they're verilator errors #489
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
Comments
@alex-the-new-guy |
Still doesn't work, output same as the issue. First of all, if someone puts full bin path, as IMO a better approach would be to check if stderr line matches some sort of regex (first symbol is Then there are parsing issues. vscode-verilog-hdl-support/src/linter/VerilatorLinter.ts Lines 117 to 119 in 416807d
Also, something like Second issue with this code is that it rejects anything outside of current file. If you have a submodule and proper includes, verilator can parse said includes and check if inputs/outputs are correct. I suggest just removing the Then there is the regex parser.
I've submitted a PR that attempts to fix these issues. Seems to work on windows and linux (WSL). |
Describe the bug
When running a linter there may be errors besides linter tool errors, such as linter executable not being reachable.
Linter output then looks like:
Which doesn't communicate in any way that the install directory is misconfigured and the linter actually didn't run at all. Meanwhile the message about "directory being invalid", or really anything else that might suggest something went wrong and/or help diagnose it just gets ignored.
Just duping stderr messages into logger.error would be very much good enough.
Environment (please complete the following information):
Steps to reproduce
Steps to reproduce the behavior:
In my case:
"verilog.liting.linter": "verilator"
and"verilog.linting.path": "<some wrong path>"
Verilog: Rerun lint tool
In my case, the output is:
Dumping stderr into logger.error would add
This, at least, indicates there is an issue.
(also, separate regex for errors and warnings would be nice).
The text was updated successfully, but these errors were encountered: