From a796e90274c7aadfd1455dfd1947b9a5f95db2b7 Mon Sep 17 00:00:00 2001 From: LauBMo <15877199+LauraBMo@users.noreply.github.com> Date: Tue, 7 Feb 2023 23:14:50 +0100 Subject: [PATCH] Fix potential issue of lsp-julia--rls-command See #49 --- lsp-julia.el | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/lsp-julia.el b/lsp-julia.el index 3e87f98..902f3ff 100644 --- a/lsp-julia.el +++ b/lsp-julia.el @@ -275,17 +275,19 @@ body." "The command to lauch the Julia Language Server." `(,lsp-julia-command ,@lsp-julia-flags - ,(concat "-e" + ,(concat "-e " + "'" "import Pkg; Pkg.instantiate(); " - "using LanguageServer, LanguageServer.SymbolServer;" + "using LanguageServer, LanguageServer.SymbolServer; " ;; " Union{Int64, String}(x::String) = x; " - " server = LanguageServer.LanguageServerInstance(" - " stdin, stdout," - (lsp-julia--get-root) "," - (lsp-julia--get-depot-path) "," - " nothing, " - (lsp-julia--symbol-server-store-path-to-jl) ");" - " run(server);"))) + "server = LanguageServer.LanguageServerInstance(" + "stdin, stdout, " + (lsp-julia--get-root) ", " + (lsp-julia--get-depot-path) ", " + "nothing, " + (lsp-julia--symbol-server-store-path-to-jl) "); " + "run(server);" + "'"))) (defun lsp-julia-update-languageserver () "The command to update the Julia Language Server."