aboutsummaryrefslogtreecommitdiff
path: root/installer
diff options
context:
space:
mode:
Diffstat (limited to 'installer')
-rw-r--r--installer/install-bash-language-server.cmd2
-rw-r--r--installer/install-clojure-lsp.cmd7
-rw-r--r--installer/install-cobol-language-support.cmd4
-rw-r--r--installer/install-css-languageserver.cmd2
-rw-r--r--installer/install-docker-langserver.cmd2
-rw-r--r--installer/install-eclipse-jdt-ls.cmd13
-rw-r--r--installer/install-elm-language-server.cmd2
-rw-r--r--installer/install-emmylua-ls.cmd13
-rw-r--r--installer/install-fortls.cmd2
-rw-r--r--installer/install-gopls.cmd11
-rw-r--r--installer/install-html-languageserver.cmd2
-rw-r--r--installer/install-intelephense.cmd2
-rw-r--r--installer/install-javascript-typescript-langserver.cmd2
-rw-r--r--installer/install-json-languageserver.cmd2
-rw-r--r--installer/install-kotlin-language-server.cmd13
-rw-r--r--installer/install-lsp4xml.cmd13
-rw-r--r--installer/install-metals.cmd10
-rw-r--r--installer/install-omnisharp-lsp.cmd13
-rw-r--r--installer/install-pyls.cmd2
-rw-r--r--installer/install-solargraph.cmd13
-rw-r--r--installer/install-terraform-lsp.cmd13
-rw-r--r--installer/install-typescript-language-server.cmd2
-rw-r--r--installer/install-vim-language-server.cmd2
-rw-r--r--installer/install-yaml-language-server.cmd2
-rw-r--r--installer/npm_install.cmd6
-rw-r--r--installer/pip_install.cmd6
26 files changed, 100 insertions, 61 deletions
diff --git a/installer/install-bash-language-server.cmd b/installer/install-bash-language-server.cmd
index 1976dc4..0504f39 100644
--- a/installer/install-bash-language-server.cmd
+++ b/installer/install-bash-language-server.cmd
@@ -1,5 +1,5 @@
@echo off
-cd %~dp0
+cd /d %~dp0
call npm_install bash-language-server bash-language-server
diff --git a/installer/install-clojure-lsp.cmd b/installer/install-clojure-lsp.cmd
index e92b327..82e5065 100644
--- a/installer/install-clojure-lsp.cmd
+++ b/installer/install-clojure-lsp.cmd
@@ -2,10 +2,11 @@
setlocal
-cd %~dp0
+cd /d %~dp0
-set server_dir="..\servers\clojure-lsp"
+set server_dir=..\servers\clojure-lsp
if exist %server_dir% rd /Q /S "%server_dir%"
md "%server_dir%"
-cd "%server_dir%"
+cd /d "%server_dir%"
+
curl -L -o clojure-lsp.cmd https://github.com/snoe/clojure-lsp/releases/download/release-20191202T142318/clojure-lsp
diff --git a/installer/install-cobol-language-support.cmd b/installer/install-cobol-language-support.cmd
index c43832b..e1b6090 100644
--- a/installer/install-cobol-language-support.cmd
+++ b/installer/install-cobol-language-support.cmd
@@ -2,12 +2,12 @@
setlocal
-cd %~dp0
+cd /d %~dp0
set server_dir=..\servers\cobol-language-support
if exist %server_dir% rd /Q /S "%server_dir%"
md "%server_dir%"
-cd "%server_dir%"
+cd /d "%server_dir%"
set version=0.9.1
set url=https://github.com/eclipse/che-che4z-lsp-for-cobol/releases/download/%version%/cobol-language-support-%version%.vsix
diff --git a/installer/install-css-languageserver.cmd b/installer/install-css-languageserver.cmd
index 79de653..64117b9 100644
--- a/installer/install-css-languageserver.cmd
+++ b/installer/install-css-languageserver.cmd
@@ -1,5 +1,5 @@
@echo off
-cd %~dp0
+cd /d %~dp0
call npm_install css-languageserver vscode-css-languageserver-bin
diff --git a/installer/install-docker-langserver.cmd b/installer/install-docker-langserver.cmd
index fd16f67..05e9953 100644
--- a/installer/install-docker-langserver.cmd
+++ b/installer/install-docker-langserver.cmd
@@ -1,6 +1,6 @@
@echo off
-cd %~dp0
+cd /d %~dp0
call npm_install docker-langserver dockerfile-language-server-nodejs
diff --git a/installer/install-eclipse-jdt-ls.cmd b/installer/install-eclipse-jdt-ls.cmd
index d4a5baa..7a8c1db 100644
--- a/installer/install-eclipse-jdt-ls.cmd
+++ b/installer/install-eclipse-jdt-ls.cmd
@@ -1,9 +1,14 @@
@echo off
-cd %~dp0
-if exist "..\servers\eclipse-jdt-ls" rd /S /Q "..\servers\eclipse-jdt-ls"
-md "..\servers\eclipse-jdt-ls"
-cd "..\servers\eclipse-jdt-ls"
+setlocal
+
+cd /d %~dp0
+
+set server_dir=..\servers\eclipse-jdt-ls
+if exist %server_dir% rd /Q /S "%server_dir%"
+md "%server_dir%"
+cd /d "%server_dir%"
+
curl -o "jdt-language-server-latest.tar.gz" "http://download.eclipse.org/jdtls/snapshots/jdt-language-server-latest.tar.gz"
curl -o "lombok.jar" "https://projectlombok.org/downloads/lombok.jar"
tar xvf jdt-language-server-latest.tar.gz
diff --git a/installer/install-elm-language-server.cmd b/installer/install-elm-language-server.cmd
index 9b58339..7390b98 100644
--- a/installer/install-elm-language-server.cmd
+++ b/installer/install-elm-language-server.cmd
@@ -1,5 +1,5 @@
@echo off
-cd %~dp0
+cd /d %~dp0
call npm_install elm-language-server "@elm-tooling/elm-language-server"
diff --git a/installer/install-emmylua-ls.cmd b/installer/install-emmylua-ls.cmd
index afbe34e..ba0f39f 100644
--- a/installer/install-emmylua-ls.cmd
+++ b/installer/install-emmylua-ls.cmd
@@ -1,9 +1,14 @@
@echo off
-cd %~dp0
-if exist "..\servers\emmylua-ls" rd /S /Q "..\servers\emmylua-ls"
-md "..\servers\emmylua-ls"
-cd "..\servers\emmylua-ls"
+setlocal
+
+cd /d %~dp0
+
+set server_dir=..\servers\emmylua-ls
+if exist %server_dir% rd /Q /S "%server_dir%"
+md "%server_dir%"
+cd /d "%server_dir%"
+
curl -L -o EmmyLua-LS-all.jar "https://ci.appveyor.com/api/buildjobs/54yf9rjvj49494pd/artifacts/EmmyLua-LS%%2Fbuild%%2Flibs%%2FEmmyLua-LS-all.jar"
echo @echo off ^
diff --git a/installer/install-fortls.cmd b/installer/install-fortls.cmd
index 89648e6..20c306b 100644
--- a/installer/install-fortls.cmd
+++ b/installer/install-fortls.cmd
@@ -1,6 +1,6 @@
@echo off
-cd %~dp0
+cd /d %~dp0
call pip_install fortls fortran-language-server
diff --git a/installer/install-gopls.cmd b/installer/install-gopls.cmd
index 2862abe..8289713 100644
--- a/installer/install-gopls.cmd
+++ b/installer/install-gopls.cmd
@@ -2,10 +2,13 @@
setlocal
-cd %~dp0
-if exist "..\servers\gopls" rd /S /Q "..\servers\gopls"
-md "..\servers\gopls"
-cd "..\servers\gopls"
+cd /d %~dp0
+
+set server_dir=..\servers\gopls
+if exist %server_dir% rd /Q /S "%server_dir%"
+md "%server_dir%"
+cd /d "%server_dir%"
+
set GOPATH=%cd%
set GOBIN=%cd%
go get -v -u golang.org/x/tools/cmd/gopls
diff --git a/installer/install-html-languageserver.cmd b/installer/install-html-languageserver.cmd
index 0f17784..6482513 100644
--- a/installer/install-html-languageserver.cmd
+++ b/installer/install-html-languageserver.cmd
@@ -1,5 +1,5 @@
@echo off
-cd %~dp0
+cd /d %~dp0
call npm_install html-languageserver vscode-json-languageserver-bin
diff --git a/installer/install-intelephense.cmd b/installer/install-intelephense.cmd
index 72e55c7..b073901 100644
--- a/installer/install-intelephense.cmd
+++ b/installer/install-intelephense.cmd
@@ -1,5 +1,5 @@
@echo off
-cd %~dp0
+cd /d %~dp0
call npm_install intelephense intelephense
diff --git a/installer/install-javascript-typescript-langserver.cmd b/installer/install-javascript-typescript-langserver.cmd
index 3ddc2da..d822033 100644
--- a/installer/install-javascript-typescript-langserver.cmd
+++ b/installer/install-javascript-typescript-langserver.cmd
@@ -1,5 +1,5 @@
@echo off
-cd %~dp0
+cd /d %~dp0
call npm_install javascript-typescript-langserver javascript-typescript-langserver
diff --git a/installer/install-json-languageserver.cmd b/installer/install-json-languageserver.cmd
index 8e76105..d5434f9 100644
--- a/installer/install-json-languageserver.cmd
+++ b/installer/install-json-languageserver.cmd
@@ -1,5 +1,5 @@
@echo off
-cd %~dp0
+cd /d %~dp0
call npm_install json-languageserver vscode-json-languageserver-bin
diff --git a/installer/install-kotlin-language-server.cmd b/installer/install-kotlin-language-server.cmd
index 84d5cbf..1a67356 100644
--- a/installer/install-kotlin-language-server.cmd
+++ b/installer/install-kotlin-language-server.cmd
@@ -1,9 +1,14 @@
@echo off
-cd %~dp0
-if exist "..\servers\kotlin-language-server" rd /S /Q "..\servers\kotlin-language-server"
-md "..\servers\kotlin-language-server"
-cd "..\servers\kotlin-language-server"
+setlocal
+
+cd /d %~dp0
+
+set server_dir=..\servers\kotlin-language-server
+if exist %server_dir% rd /Q /S "%server_dir%"
+md "%server_dir%"
+cd /d "%server_dir%"
+
curl -L -o server.zip "https://github.com/fwcd/kotlin-language-server/releases/download/0.5.2/server.zip"
unzip server.zip
del server.zip
diff --git a/installer/install-lsp4xml.cmd b/installer/install-lsp4xml.cmd
index 966a3b7..1ff4b3b 100644
--- a/installer/install-lsp4xml.cmd
+++ b/installer/install-lsp4xml.cmd
@@ -1,9 +1,14 @@
@echo off
-cd %~dp0
-if exist "..\servers\lsp4xml" rd /S /Q "..\servers\lsp4xml"
-md "..\servers\lsp4xml"
-cd "..\servers\lsp4xml"
+setlocal
+
+cd /d %~dp0
+
+set server_dir=..\servers\lsp4xml
+if exist %server_dir% rd /Q /S "%server_dir%"
+md "%server_dir%"
+cd /d "%server_dir%"
+
curl -LO "https://dl.bintray.com/lsp4xml/releases/org/lsp4xml/org.eclipse.lsp4xml/0.9.1/org.eclipse.lsp4xml-0.9.1-uber.jar"
echo @echo off ^
diff --git a/installer/install-metals.cmd b/installer/install-metals.cmd
index 8d290cf..294ed2d 100644
--- a/installer/install-metals.cmd
+++ b/installer/install-metals.cmd
@@ -2,12 +2,12 @@
setlocal
-cd %~dp0
+cd /d %~dp0
-set server_dir="..\servers\metals"
-rd /Q /S %server_dir%
-md %server_dir%
-cd "%server_dir%"
+set server_dir=..\servers\metals
+if exist %server_dir% rd /Q /S "%server_dir%"
+md "%server_dir%"
+cd /d "%server_dir%"
curl -Lo coursier https://git.io/coursier-cli
curl -Lo coursier.bat https://git.io/coursier-bat
diff --git a/installer/install-omnisharp-lsp.cmd b/installer/install-omnisharp-lsp.cmd
index 253936a..be58203 100644
--- a/installer/install-omnisharp-lsp.cmd
+++ b/installer/install-omnisharp-lsp.cmd
@@ -1,9 +1,14 @@
@echo off
-cd %~dp0
-if exist "..\servers\omnisharp-lsp" rd /S /Q "..\servers\omnisharp-lsp"
-md "..\servers\omnisharp-lsp"
-cd "..\servers\omnisharp-lsp"
+setlocal
+
+cd /d %~dp0
+
+set server_dir=..\servers\omnisharp-lsp
+if exist %server_dir% rd /Q /S "%server_dir%"
+md "%server_dir%"
+cd /d "%server_dir%"
+
curl -L -o omnisharp-win-x64.zip "https://github.com/OmniSharp/omnisharp-roslyn/releases/download/v1.34.9/omnisharp-win-x64.zip"
unzip omnisharp-win-x64.zip
del omnisharp-win-x64.zip
diff --git a/installer/install-pyls.cmd b/installer/install-pyls.cmd
index 7b62104..4449ff4 100644
--- a/installer/install-pyls.cmd
+++ b/installer/install-pyls.cmd
@@ -1,5 +1,5 @@
@echo off
-cd %~dp0
+cd /d %~dp0
call pip_install pyls python-language-server
diff --git a/installer/install-solargraph.cmd b/installer/install-solargraph.cmd
index 9f7c973..9493e45 100644
--- a/installer/install-solargraph.cmd
+++ b/installer/install-solargraph.cmd
@@ -1,9 +1,14 @@
@echo off
-cd %~dp0
-if exist "..\servers\solargraph" rd /S /Q "..\servers\solargraph"
-md "..\servers\solargraph"
-cd "..\servers\solargraph"
+setlocal
+
+cd /d %~dp0
+
+set server_dir=..\servers\solargraph
+if exist %server_dir% rd /Q /S "%server_dir%"
+md "%server_dir%"
+cd /d "%server_dir%"
+
git clone "https://github.com/castwide/solargraph" .
call bundle install --path vendor/bundle
diff --git a/installer/install-terraform-lsp.cmd b/installer/install-terraform-lsp.cmd
index 4903513..afa48f1 100644
--- a/installer/install-terraform-lsp.cmd
+++ b/installer/install-terraform-lsp.cmd
@@ -1,7 +1,12 @@
@echo off
-cd %~dp0
-if exist "..\servers\terraform-lsp" rd /S /Q "..\servers\terraform-lsp"
-md "..\servers\terraform-lsp"
-cd "..\servers\terraform-lsp"
+setlocal
+
+cd /d %~dp0
+
+set server_dir=..\servers\terraform-lsp
+if exist %server_dir% rd /Q /S "%server_dir%"
+md "%server_dir%"
+cd /d "%server_dir%"
+
curl -L "https://github.com/juliosueiras/terraform-lsp/releases/download/v0.0.9/terraform-lsp_0.0.9_windows_amd64.tar.gz" | tar xz
diff --git a/installer/install-typescript-language-server.cmd b/installer/install-typescript-language-server.cmd
index fea8393..f488f85 100644
--- a/installer/install-typescript-language-server.cmd
+++ b/installer/install-typescript-language-server.cmd
@@ -1,5 +1,5 @@
@echo off
-cd %~dp0
+cd /d %~dp0
call npm_install typescript-language-server typescript-language-server
diff --git a/installer/install-vim-language-server.cmd b/installer/install-vim-language-server.cmd
index 14ad1bc..0223980 100644
--- a/installer/install-vim-language-server.cmd
+++ b/installer/install-vim-language-server.cmd
@@ -1,5 +1,5 @@
@echo off
-cd %~dp0
+cd /d %~dp0
call npm_install vim-language-server vim-language-server
diff --git a/installer/install-yaml-language-server.cmd b/installer/install-yaml-language-server.cmd
index 6d404c6..a75f6d0 100644
--- a/installer/install-yaml-language-server.cmd
+++ b/installer/install-yaml-language-server.cmd
@@ -1,5 +1,5 @@
@echo off
-cd %~dp0
+cd /d %~dp0
call npm_install yaml-language-server yaml-language-server
diff --git a/installer/npm_install.cmd b/installer/npm_install.cmd
index 5988b37..7d0a122 100644
--- a/installer/npm_install.cmd
+++ b/installer/npm_install.cmd
@@ -3,10 +3,10 @@
if "x%1" equ "x" goto :EOF
if "x%2" equ "x" goto :EOF
-set server_dir="..\servers\%1"
-if exist %server_dir% rd /Q /S "%server_dir%"
+set server_dir=..\servers\%1
+if exist "%server_dir%" rd /Q /S "%server_dir%"
md "%server_dir%"
-cd "%server_dir%"
+cd /d "%server_dir%"
call npm init -y
diff --git a/installer/pip_install.cmd b/installer/pip_install.cmd
index 9b8a0b1..3dbaf4f 100644
--- a/installer/pip_install.cmd
+++ b/installer/pip_install.cmd
@@ -3,10 +3,10 @@
if "x%1" equ "x" goto :EOF
if "x%2" equ "x" goto :EOF
-set server_dir="..\servers\%1"
-rd /Q /S "%server_dir%" 2>NUL
+set server_dir=..\servers\%1
+if exist "%server_dir%" rd /Q /S "%server_dir%"
md "%server_dir%"
-cd "%server_dir%"
+cd /d "%server_dir%"
python3 -m venv ./venv
venv\bin\pip3 install %2