2020-04-08 12:30:23 +00:00
|
|
|
Before:
|
|
|
|
runtime ale_linters/verilog/verilator.vim
|
|
|
|
|
|
|
|
After:
|
|
|
|
call ale#linter#Reset()
|
|
|
|
|
|
|
|
Execute (The verilator handler should parse legacy messages with only line numbers):
|
|
|
|
AssertEqual
|
|
|
|
\ [
|
|
|
|
\ {
|
|
|
|
\ 'lnum': 3,
|
|
|
|
\ 'type': 'E',
|
2021-02-11 19:35:25 +00:00
|
|
|
\ 'text': 'syntax error, unexpected IDENTIFIER',
|
|
|
|
\ 'filename': 'foo.v'
|
2020-04-08 12:30:23 +00:00
|
|
|
\ },
|
|
|
|
\ {
|
|
|
|
\ 'lnum': 10,
|
|
|
|
\ 'type': 'W',
|
2021-02-11 19:35:25 +00:00
|
|
|
\ 'text': 'Blocking assignments (=) in sequential (flop or latch) block; suggest delayed assignments (<=).',
|
|
|
|
\ 'filename': 'bar.v'
|
2020-04-08 12:30:23 +00:00
|
|
|
\ },
|
|
|
|
\ ],
|
|
|
|
\ ale_linters#verilog#verilator#Handle(bufnr(''), [
|
2021-02-11 19:35:25 +00:00
|
|
|
\ '%Error: foo.v:3: syntax error, unexpected IDENTIFIER',
|
|
|
|
\ '%Warning-BLKSEQ: bar.v:10: Blocking assignments (=) in sequential (flop or latch) block; suggest delayed assignments (<=).',
|
2020-04-08 12:30:23 +00:00
|
|
|
\ ])
|
|
|
|
|
|
|
|
Execute (The verilator handler should parse new format messages with line and column numbers):
|
|
|
|
AssertEqual
|
|
|
|
\ [
|
|
|
|
\ {
|
|
|
|
\ 'lnum': 3,
|
|
|
|
\ 'col' : 1,
|
|
|
|
\ 'type': 'E',
|
2021-02-11 19:35:25 +00:00
|
|
|
\ 'text': 'syntax error, unexpected endmodule, expecting ;',
|
|
|
|
\ 'filename': 'bar.v'
|
2020-04-08 12:30:23 +00:00
|
|
|
\ },
|
|
|
|
\ {
|
|
|
|
\ 'lnum': 4,
|
|
|
|
\ 'col' : 6,
|
|
|
|
\ 'type': 'W',
|
2021-02-11 19:35:25 +00:00
|
|
|
\ 'text': 'Signal is not used: r',
|
|
|
|
\ 'filename': 'foo.v'
|
2020-04-08 12:30:23 +00:00
|
|
|
\ },
|
|
|
|
\ ],
|
|
|
|
\ ale_linters#verilog#verilator#Handle(bufnr(''), [
|
2021-02-11 19:35:25 +00:00
|
|
|
\ '%Error: bar.v:3:1: syntax error, unexpected endmodule, expecting ;',
|
|
|
|
\ '%Warning-UNUSED: foo.v:4:6: Signal is not used: r',
|
2020-04-08 12:30:23 +00:00
|
|
|
\ ])
|