blob: 1e15cbab9cc2deb99838d4bc4563177980633f06 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#!/usr/bin/env bash
set -e
julia -e 'using Pkg; Pkg.add(PackageSpec(name="LanguageServer", rev="master"))'
julia -e 'using Pkg; Pkg.add(PackageSpec(name="SymbolServer", rev="master"))'
julia -e 'using Pkg; Pkg.add(PackageSpec(name="CSTParser", rev="master"))'
cat <<EOF >languageserver.jl
import LanguageServer
import Pkg
import SymbolServer
envpath = dirname(Pkg.Types.Context().env.project_file)
server = LanguageServer.LanguageServerInstance(stdin, stdout, false, envpath)
server.runlinter = true
run(server)
EOF
cat <<EOF >julia-language-server
#!/usr/bin/env bash
DIR=\$(cd \$(dirname \$0); pwd)
julia \$DIR/languageserver.jl \$*
EOF
chmod +x julia-language-server
|