Try to fix CI

This commit is contained in:
Bartolomeo Stellato 2018-09-08 14:11:11 -04:00
parent 68ac4d1095
commit 91bb948b90
4 changed files with 16 additions and 8 deletions

View File

@ -1,8 +1,8 @@
" Author: Bartolomeo Stellato bartolomeo.stellato@gmail.com " Author: Bartolomeo Stellato bartolomeo.stellato@gmail.com
" Description: Functions for integrating with Julia tools " Description: Functions for integrating with Julia tools
" Find the nearest dir contining a git project as julia project " Find the nearest dir containing a julia project
let s:__ale_julia_project_filenames = ['REQUIRE'] let s:__ale_julia_project_filenames = ['REQUIRE', 'Manifest.toml', 'Project.toml']
function! ale#julia#FindProjectRoot(buffer) abort function! ale#julia#FindProjectRoot(buffer) abort
for l:project_filename in s:__ale_julia_project_filenames for l:project_filename in s:__ale_julia_project_filenames

View File

@ -1,14 +1,14 @@
=============================================================================== ===============================================================================
ALE Julia Integration *ale-julia-options* ALE Julia Integration *ale-julia-options*
=============================================================================== ===============================================================================
languageserver *ale-julia-languageserver* languageserver *ale-julia-languageserver*
To enable Julia LSP linter you need to install the LanguageServer.jl package To enable Julia LSP linter you need to install the LanguageServer.jl package
within julia. within julia.
g:ale_julia_executable *g:ale_julia_executable* g:ale_julia_executable *g:ale_julia_executable*
*b:ale_julia_executable* *b:ale_julia_executable*
Type: String Type: String
Default: 'julia' Default: 'julia'

View File

@ -144,6 +144,8 @@ CONTENTS *ale-contents*
jsonlint............................|ale-json-jsonlint| jsonlint............................|ale-json-jsonlint|
jq..................................|ale-json-jq| jq..................................|ale-json-jq|
prettier............................|ale-json-prettier| prettier............................|ale-json-prettier|
julia.................................|ale-julia-options|
languageserver......................|ale-julia-languageserver|
kotlin................................|ale-kotlin-options| kotlin................................|ale-kotlin-options|
kotlinc.............................|ale-kotlin-kotlinc| kotlinc.............................|ale-kotlin-kotlinc|
ktlint..............................|ale-kotlin-ktlint| ktlint..............................|ale-kotlin-ktlint|

View File

@ -5,12 +5,18 @@ After:
call ale#assert#TearDownLinterTest() call ale#assert#TearDownLinterTest()
Execute(The default executable path should be correct): Execute(The default executable path should be correct):
AssertLinter 'julia', "julia --startup-file=no --history-file=no -e 'using LanguageServer; server = LanguageServer.LanguageServerInstance(STDIN, STDOUT, false); server.runlinter = true; run(server);'" 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);')
Execute(The executable should be configurable): Execute(The executable should be configurable):
let g:ale_julia_executable = 'julia-new' let g:ale_julia_executable = 'julia-new'
AssertLinter 'julia-new', "julia-new --startup-file=no --history-file=no -e 'using LanguageServer; server = LanguageServer.LanguageServerInstance(STDIN, STDOUT, false); server.runlinter = true; run(server);'" 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);')
Execute(The project root should be detected correctly): Execute(The project root should be detected correctly):
AssertLSPProject '' AssertLSPProject ''