ale/test/handler/test_raco_handler.vader
D. Ben Knoble d6302d1858
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.
2021-07-04 21:17:44 +09:00

28 lines
1.0 KiB
Plaintext

Before:
runtime ale_linters/racket/raco.vim
After:
call ale#linter#Reset()
Execute(The raco handler should handle errors for the current file correctly):
AssertEqual
\ [
\ {
\ 'filename': 'foo.rkt',
\ 'lnum': 4,
\ 'col': 1,
\ 'type': 'E',
\ 'text': 'dfine: unbound identifier in modulemessage',
\ },
\ ],
\ ale_linters#racket#raco#Handle(bufnr(''), [
\ 'foo.rkt:4:1: dfine: unbound identifier in modulemessage',
\ ' in: dfine',
\ ' context...:',
\ ' /usr/local/Cellar/racket/6.5/share/racket/pkgs/compiler-lib/compiler/commands/expand.rkt:34:15: loop',
\ ' /usr/local/Cellar/racket/6.5/share/racket/pkgs/compiler-lib/compiler/commands/expand.rkt:10:2: show-program',
\ ' /usr/local/Cellar/racket/6.5/share/racket/pkgs/compiler-lib/compiler/commands/expand.rkt: [running body]',
\ ' /usr/local/Cellar/minimal-racket/6.6/share/racket/collects/raco/raco.rkt: [running body]',
\ ' /usr/local/Cellar/minimal-racket/6.6/share/racket/collects/raco/main.rkt: [running body]',
\ ])