Include executable checks in ALEInfo
This commit is contained in:
@@ -7,6 +7,7 @@ Before:
|
||||
let g:testlinter1 = {'name': 'testlinter1', 'executable': 'testlinter1', 'command': 'testlinter1', 'callback': 'testCB1', 'output_stream': 'stdout'}
|
||||
let g:testlinter2 = {'name': 'testlinter2', 'executable': 'testlinter2', 'command': 'testlinter2', 'callback': 'testCB2', 'output_stream': 'stdout'}
|
||||
|
||||
call ale#engine#ResetExecutableCache()
|
||||
call ale#linter#Reset()
|
||||
let g:ale_linters = {}
|
||||
let g:ale_linter_aliases = {}
|
||||
@@ -351,3 +352,22 @@ Execute (ALEInfo command history should print command output if logging is on):
|
||||
\ '',
|
||||
\ '<<<NO OUTPUT RETURNED>>>',
|
||||
\])
|
||||
|
||||
Execute (ALEInfo should include executable checks in the history):
|
||||
let g:ale_buffer_info[bufnr('')] = {'history': []}
|
||||
|
||||
call ale#linter#Define('testft', g:testlinter1)
|
||||
call ale#engine#IsExecutable(bufnr(''), 'echo')
|
||||
call ale#engine#IsExecutable(bufnr(''), 'TheresNoWayThisIsExecutable')
|
||||
|
||||
call CheckInfo([
|
||||
\ ' Current Filetype: testft.testft2',
|
||||
\ 'Available Linters: [''testlinter1'']',
|
||||
\ ' Enabled Linters: [''testlinter1'']',
|
||||
\ ' Linter Variables:',
|
||||
\ '',
|
||||
\] + g:globals_lines + g:command_header + [
|
||||
\ '',
|
||||
\ '(executable check - success) echo',
|
||||
\ '(executable check - failure) TheresNoWayThisIsExecutable',
|
||||
\])
|
||||
|
||||
Reference in New Issue
Block a user