From d6302d18580c8886c14ac9f63d05466cbb43ee17 Mon Sep 17 00:00:00 2001 From: "D. Ben Knoble" Date: Sun, 4 Jul 2021 08:17:44 -0400 Subject: [PATCH] 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. --- ale_linters/racket/raco.vim | 1 + test/handler/test_raco_handler.vader | 1 + 2 files changed, 2 insertions(+) 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',