From d1e2fc278d0511900bffcfad2a1215bbebbcf321 Mon Sep 17 00:00:00 2001 From: Radon Rosborough Date: Sat, 22 Aug 2020 19:31:52 -0600 Subject: [PATCH] WIP: R LSP --- backend/src/langs.ts | 3 +++ scripts/docker-install-phase3c.bash | 2 ++ scripts/docker-install-phase5.bash | 3 +++ 3 files changed, 8 insertions(+) diff --git a/backend/src/langs.ts b/backend/src/langs.ts index 385fcc6..d3036aa 100644 --- a/backend/src/langs.ts +++ b/backend/src/langs.ts @@ -1872,6 +1872,9 @@ main = do scope: { code: `x = 123 * 234`, }, + lsp: { + start: `R --slave -e "languageserver::run()"`, + }, template: `print("Hello, world!") `, }, diff --git a/scripts/docker-install-phase3c.bash b/scripts/docker-install-phase3c.bash index b02aa5e..a0a2c9e 100755 --- a/scripts/docker-install-phase3c.bash +++ b/scripts/docker-install-phase3c.bash @@ -66,6 +66,8 @@ python3-pip python3-venv # R +libcurl4-openssl-dev +libxml2-dev r-base # Racket diff --git a/scripts/docker-install-phase5.bash b/scripts/docker-install-phase5.bash index 42dc84f..05b8991 100755 --- a/scripts/docker-install-phase5.bash +++ b/scripts/docker-install-phase5.bash @@ -89,6 +89,9 @@ npm install -g purescript spago # Python pip3 install black +# R +R -e 'install.packages("languageserver")' + # ReasonML npm install -g bs-platform opam install -y reason