mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-06 12:44:23 +08:00
Some checks failed
CI / build_image (push) Has been cancelled
CI / test_ale (--linters-only) (push) Has been cancelled
CI / test_ale (--neovim-06-only) (push) Has been cancelled
CI / test_ale (--neovim-08-only) (push) Has been cancelled
CI / test_ale (--vim-80-only) (push) Has been cancelled
CI / test_ale (--vim-90-only) (push) Has been cancelled
With the 1.6 version of jq the error message start with "parse error". With the last version of jq the error message start with "jq: parse error". Fix it by using a regular expression that works in both cases.
31 lines
610 B
Plaintext
31 lines
610 B
Plaintext
Before:
|
|
runtime ale_linters/json/jq.vim
|
|
|
|
After:
|
|
call ale#linter#Reset()
|
|
|
|
Execute (Should parse error correctly):
|
|
AssertEqual
|
|
\ [
|
|
\ {
|
|
\ 'lnum': 1,
|
|
\ 'col': 9,
|
|
\ 'text': 'Expected another array element',
|
|
\ }
|
|
\ ],
|
|
\ ale_linters#json#jq#Handle(0, [
|
|
\ 'parse error: Expected another array element at line 1, column 9'
|
|
\ ])
|
|
|
|
AssertEqual
|
|
\ [
|
|
\ {
|
|
\ 'lnum': 1,
|
|
\ 'col': 9,
|
|
\ 'text': 'Expected another array element',
|
|
\ }
|
|
\ ],
|
|
\ ale_linters#json#jq#Handle(0, [
|
|
\ 'jq: parse error: Expected another array element at line 1, column 9'
|
|
\ ])
|