Skip to content

Wrapper around julia-vscode that enables running the Julia language server as a standalone executable.

License

Notifications You must be signed in to change notification settings

mason-org/julia-lsp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

julia-lsp

Wrapper around julia-vscode that enables running the Julia language server as a standalone executable.

Usage

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/

Storage locations

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.

Symbol caches

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>"

Configurating the Julia binary

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>"

About

Wrapper around julia-vscode that enables running the Julia language server as a standalone executable.

Resources

License

Stars

Watchers

Forks

Sponsor this project