Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Julia

Install

macOS / Linux / Windows

From the Julia REPL:

using Pkg
Pkg.add("LanguageServer")

Config

Catenary ships a built-in definition for julia — no [lsp.server.*] config is needed. If julia is on PATH and LanguageServer.jl is installed, it works automatically.

Notes

  • The server starts a Julia process, which has some startup time
  • The built-in uses --startup-file=no and --history-file=no for faster startup
  • First run on a project may take time to load packages and index
  • Works best with projects that have a Project.toml

Reducing Startup Time

For faster startup, you can create a custom sysimage:

using PackageCompiler
create_sysimage([:LanguageServer], sysimage_path="languageserver.so")

Then override the built-in default:

[lsp.server.julia]
args = ["--sysimage=/path/to/languageserver.so", "-e", "using LanguageServer; runserver()"]