LexicalLexical is a next-generation language server for the Elixir programming language. Features
For all the details on what makes Lexical stand out from other Elixir language servers, see the language server repository. Using the extensionThis extension will automatically download and install the
latest Lexical release from
Github when starting up. You can disable this behaviour and point the extension
to your own build with the
Configurationlexical.server.releasePathOverrideTells the extension to use a local release of the Lexical language server
instead of the automatically installed one. Useful to work on Lexical, or use an
older version. This path can point to a directory that holds the lexical start
script (assumed to be The path should look something like
lexical.notifyOnServerAutoUpdateControls whether notifications are shown after automatic installs of new Lexcial
versions. Defaults to Editor ConfigurationThe extension provides a language configuration for Elixir which marks
Erlang and Elixir version compatibilityErlangAuto-installed builds of Lexical are compatible with Elixir and Erlang versions that are newer than the version the build was built with. Refer to the following table to know which version that is:
Refer to the Releases page of Lexical to find out what the latest version is. These versions are a couple years old, and if you are using newer versions of Elixir and Erlang and Elixir in your projects, perfomrance will likely be better if you built Lexical yourself with a newer version of Elixir and Erlang. This isn't hard to do: clone the Lexical language server repo, build a release following the instructions in the README and configure the extension to use that local release. The following table illustrates which versions of Erlang Lexical is compatible with when building yourself.
ElixirLexical has much less strict requirements on the version of Elixir. Any supported version of Elixir should work with any build of Lexical, auto-installed or not. The supported versions of Elixir are as follows:
TroubleshootingLexical outputs logs to two different files:
Additionally, the Lexical channel in VSCode's Output tab may contain some pertinent information, notably when Lexical fails to start whatsoever (no log files are created). Frequent issues and questionsError in output tab:
|