diff options
author | D. Ben Knoble <ben.knoble+github@gmail.com> | 2021-07-04 08:17:44 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-04 21:17:44 +0900 |
commit | d6302d18580c8886c14ac9f63d05466cbb43ee17 (patch) | |
tree | 1f010f7fdb827c94399d8851bc59d1570c52c659 | |
parent | 12d8803015d5850d0e4f8fd0a713262b86a195d7 (diff) | |
download | ale-d6302d18580c8886c14ac9f63d05466cbb43ee17.zip |
racket/raco: add filename to loc list (#3777)
This allows the location list from one buffer to point to an issue in
another; previously, the error message would be shown but with no way to
jump to it.
-rw-r--r-- | ale_linters/racket/raco.vim | 1 | ||||
-rw-r--r-- | test/handler/test_raco_handler.vader | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/ale_linters/racket/raco.vim b/ale_linters/racket/raco.vim index e5ee4fb4..5b26065f 100644 --- a/ale_linters/racket/raco.vim +++ b/ale_linters/racket/raco.vim @@ -14,6 +14,7 @@ function! ale_linters#racket#raco#Handle(buffer, lines) abort for l:match in ale#util#GetMatches(a:lines, l:pattern) call add(l:output, { + \ 'filename': l:match[2], \ 'lnum': l:match[3] + 0, \ 'col': l:match[4] + 0, \ 'type': 'E', diff --git a/test/handler/test_raco_handler.vader b/test/handler/test_raco_handler.vader index 217fe2f9..565fd795 100644 --- a/test/handler/test_raco_handler.vader +++ b/test/handler/test_raco_handler.vader @@ -8,6 +8,7 @@ Execute(The raco handler should handle errors for the current file correctly): AssertEqual \ [ \ { + \ 'filename': 'foo.rkt', \ 'lnum': 4, \ 'col': 1, \ 'type': 'E', |