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.
This commit is contained in:
D. Ben Knoble 2021-07-04 08:17:44 -04:00 committed by GitHub
parent 12d8803015
commit d6302d1858
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -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',

View File

@ -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',