All patches and comments are welcome. Please squash your changes to logical
commits before using git-format-patch and git-send-email to
patches@git.madduck.net.
If you'd read over the Git project's submission guidelines and adhered to them,
I'd be especially grateful.
2 Save g:ale_julia_executable
4 call ale#assert#SetUpLinterTest('julia', 'languageserver')
9 call ale#assert#TearDownLinterTest()
11 Execute(The default executable path should be correct):
13 \ ale#Escape('julia') .
14 \' --project=@. --startup-file=no --history-file=no -e ' .
15 \ ale#Escape('using LanguageServer; using Pkg; import StaticLint; import SymbolServer; server = LanguageServer.LanguageServerInstance(isdefined(Base, :stdin) ? stdin : STDIN, isdefined(Base, :stdout) ? stdout : STDOUT, dirname(Pkg.Types.Context().env.project_file)); server.runlinter = true; run(server);')
17 Execute(The executable should be configurable):
18 let g:ale_julia_executable = 'julia-new'
20 AssertLinter 'julia-new',
21 \ ale#Escape('julia-new') .
22 \' --project=@. --startup-file=no --history-file=no -e ' .
23 \ ale#Escape('using LanguageServer; using Pkg; import StaticLint; import SymbolServer; server = LanguageServer.LanguageServerInstance(isdefined(Base, :stdin) ? stdin : STDIN, isdefined(Base, :stdout) ? stdout : STDOUT, dirname(Pkg.Types.Context().env.project_file)); server.runlinter = true; run(server);')
25 Execute(The project root should be detected correctly):
28 call ale#test#SetFilename('../test-files/julia/test.jl')
30 AssertLSPProject ale#path#Simplify(g:dir . '/../test-files/julia')