mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-22 03:51:26 +08:00
Fix #1373 - Fix a bug with Fish errors not being handled on Linux
This commit is contained in:
@@ -37,3 +37,25 @@ Execute(The fish handler should handle basic warnings and syntax errors):
|
||||
\ "abbr --add p 'cd ~/Projects'",
|
||||
\ '^',
|
||||
\ ])
|
||||
|
||||
Execute(The fish handler should handle problems where the problem before before the line with the line number):
|
||||
AssertEqual
|
||||
\ [
|
||||
\ {
|
||||
\ 'lnum': 2,
|
||||
\ 'col': 23,
|
||||
\ 'text': 'Unsupported use of ''||''. In fish, please use ''COMMAND; or COMMAND''.',
|
||||
\ },
|
||||
\ {
|
||||
\ 'lnum': 5,
|
||||
\ 'col': 1,
|
||||
\ 'text': 'wat',
|
||||
\ },
|
||||
\ ],
|
||||
\ ale_linters#fish#fish#Handle(bufnr(''), [
|
||||
\ 'Unsupported use of ''||''. In fish, please use ''COMMAND; or COMMAND''.',
|
||||
\ '/tmp/vLz620o/258/test.fish (line 2): if set -q SSH_CLIENT || set -q SSH_TTY',
|
||||
\ ' ^',
|
||||
\ '/tmp/vLz620o/258/test.fish (line 5): wat',
|
||||
\ ' ^',
|
||||
\ ])
|
||||
|
||||
Reference in New Issue
Block a user