Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Adds column number to the verilator verilog linter#3098

Merged
w0rp merged 1 commit into
dense-analysis:masterdense-analysis/ale:masterfrom
tarikgraba:verilator-columnntarikgraba/ale:verilator-columnnCopy head branch name to clipboard
Apr 18, 2020
Merged

Adds column number to the verilator verilog linter#3098
w0rp merged 1 commit into
dense-analysis:masterdense-analysis/ale:masterfrom
tarikgraba:verilator-columnntarikgraba/ale:verilator-columnnCopy head branch name to clipboard

Conversation

@tarikgraba
Copy link
Copy Markdown
Contributor

Since version 4.032 (04/2020) verilator linter messages also contain the
column number, and look like:

%Error: /tmp/test.sv:3:1: syntax error, unexpected endmodule, expecting ';'

To stay compatible with old versions of the tool, the column number is
optional in the researched pattern regular expression.

See commit:
verilator/verilator@81c6599

@tarikgraba
Copy link
Copy Markdown
Contributor Author

Any clue why the tests have failed?

@tarikgraba
Copy link
Copy Markdown
Contributor Author

@w0rp Do I need to add something?

Copy link
Copy Markdown
Member

@w0rp w0rp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add a test with a message that includes the column number in a message, so we can check that we extract that from the text.

Since version 4.032 (04/2020) verilator linter messages also contain the
column number, and look like:

%Error: /tmp/test.sv:3:1: syntax error, unexpected endmodule, expecting ';'

To stay compatible with old versions of the tool, the column number is
optional in the researched pattern regular expression.

See commit:
verilator/verilator@81c6599
@tarikgraba
Copy link
Copy Markdown
Contributor Author

tarikgraba commented Apr 18, 2020

@w0rp Vader test added

Copy link
Copy Markdown
Member

@w0rp w0rp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, thanks!

@w0rp w0rp merged commit 64b9a27 into dense-analysis:master Apr 18, 2020
@w0rp
Copy link
Copy Markdown
Member

w0rp commented Apr 18, 2020

Cheers! 🍻

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

Successfully merging this pull request may close these issues.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.