diff options
author | Daniel Wennberg <daniel.wennberg@gmail.com> | 2018-09-19 06:51:20 -0700 |
---|---|---|
committer | Daniel Wennberg <daniel.wennberg@gmail.com> | 2018-09-19 07:34:11 -0700 |
commit | d50e60317738bdf203619d321c1b14b0ac53f315 (patch) | |
tree | ce0ee1e0c38104885f73937171a00688103137af /ale_linters | |
parent | b2789271023d18171b4664c333238120b1296d5f (diff) | |
download | ale-d50e60317738bdf203619d321c1b14b0ac53f315.zip |
Support both old (<0.7) and new Julia versions
Closes #1931
Diffstat (limited to 'ale_linters')
-rw-r--r-- | ale_linters/julia/languageserver.vim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ale_linters/julia/languageserver.vim b/ale_linters/julia/languageserver.vim index b5d90bff..cd2000de 100644 --- a/ale_linters/julia/languageserver.vim +++ b/ale_linters/julia/languageserver.vim @@ -6,7 +6,7 @@ call ale#Set('julia_executable', 'julia') function! ale_linters#julia#languageserver#GetCommand(buffer) abort let l:julia_executable = ale#Var(a:buffer, 'julia_executable') - let l:cmd_string = 'using LanguageServer; server = LanguageServer.LanguageServerInstance(stdin, stdout, false); server.runlinter = true; run(server);' + let l:cmd_string = 'using LanguageServer; server = LanguageServer.LanguageServerInstance(isdefined(Base, :stdin) ? stdin : STDIN, isdefined(Base, :stdout) ? stdout : STDOUT, false); server.runlinter = true; run(server);' return ale#Escape(l:julia_executable) . ' --startup-file=no --history-file=no -e ' . ale#Escape(l:cmd_string) endfunction |