Wrapper around julia-vscode that enables running the Julia language server as a standalone executable.
julia-lsp
receives one argument, the Julia environment to use. This should preferably be programmatically provided by
detecting the current project's environment.
$ julia-lsp "<julia_env_path>"
# Example:
$ julia-lsp ~/.julia/environments/v1.8/
The executable is configured to store caches to $JULIA_LSP_STORAGE
if defined, otherwise it defaults to ../store
relative to where the executable is located.
Symbols will automatically be downloaded to the store cache. To disable symbol downloads from the symbol server, set the
SYMBOL_CACHE_DOWNLOAD
environment variable to 0
, for example:
$ SYMBOL_CACHE_DOWNLOAD=0 julia-lsp "<julia_env_path>"
To configure the symbol server (default is https://www.julia-vscode.org/symbolcache
), set the SYMBOL_SERVER
environment variable, for example:
$ SYMBOL_SERVER=https://symbol-server julia-lsp "<julia_env_path>"
By default, the julia
binary found in PATH will be used to run the server. You can override this by setting the
JULIA_LSP_JULIA_BIN
environment variable, for example:
$ JULIA_LSP_JULIA_BIN=~/julia-1.9.3/bin/julia julia-lsp "<julia_env_path>"