2018-09-07 13:16:22 -04:00
|
|
|
Before:
|
|
|
|
call ale#assert#SetUpLinterTest('julia', 'languageserver')
|
|
|
|
|
|
|
|
After:
|
|
|
|
call ale#assert#TearDownLinterTest()
|
|
|
|
|
|
|
|
Execute(The default executable path should be correct):
|
2018-09-08 14:11:11 -04:00
|
|
|
AssertLinter 'julia',
|
|
|
|
\'julia' .
|
|
|
|
\' --startup-file=no --history-file=no -e ' .
|
|
|
|
\ ale#Escape('using LanguageServer; server = LanguageServer.LanguageServerInstance(STDIN, STDOUT, false); server.runlinter = true; run(server);')
|
2018-09-07 13:16:22 -04:00
|
|
|
|
|
|
|
Execute(The executable should be configurable):
|
|
|
|
let g:ale_julia_executable = 'julia-new'
|
|
|
|
|
2018-09-08 14:11:11 -04:00
|
|
|
AssertLinter 'julia-new',
|
|
|
|
\'julia-new' .
|
|
|
|
\' --startup-file=no --history-file=no -e ' .
|
|
|
|
\ ale#Escape('using LanguageServer; server = LanguageServer.LanguageServerInstance(STDIN, STDOUT, false); server.runlinter = true; run(server);')
|
2018-09-07 13:16:22 -04:00
|
|
|
|
|
|
|
Execute(The project root should be detected correctly):
|
|
|
|
AssertLSPProject ''
|
|
|
|
|
|
|
|
call ale#test#SetFilename('julia-languageserver-project/test.jl')
|
|
|
|
|
|
|
|
AssertLSPProject ale#path#Simplify(g:dir . '/julia-languageserver-project')
|