Erlang
Erlang support.
How to install
With Forge Super installed, the button above opens the app on this extension, where you press Install. Nothing is installed until you do.
You can also open the Extensions panel in the app and search for Erlang. The extension's id is erlang.
Don't have Forge Super yet? Download it here.
README
From the extension's repository, written by its authors and not by Mentenaz. See the source.
Zed Erlang
Development
To develop this extension, see the Developing Extensions section of the Zed docs.
Erlang/OTP version configuration option
By default, the extension downloads a language server binary for the latest supported Erlang/OTP version. The settings.otp_version option only selects which OTP-targeted language server binary the extension downloads; it does not configure the OTP installation used by your project or by a custom command.
// Example for `erlang-ls`
"lsp": {
"erlang-ls": {
"settings": {
"otp_version": "25"
}
}
}
// Example for `elp`
"lsp": {
"elp": {
"settings": {
"otp_version": "26.2"
}
}
}
NOTE: On Windows, the automatic download for erlang-ls currently only provides a binary for Erlang/OTP 26.2.5.3, so settings.otp_version cannot select another version.
Using a custom erlang-ls command
When the automatically selected binary does not match the OTP version you need, especially on Windows when that version is unavailable through automatic downloads, use Zed's generic binary override for the existing erlang-ls language server:
{
"lsp": {
"erlang-ls": {
"binary": {
"path": "C:/Program Files/Erlang OTP/erl-23/bin/escript.exe",
"arguments": [
"C:/path/to/compatible/erlang_ls",
"--transport",
"stdio"
]
}
}
}
}
The binary.path and binary.arguments values override the language server command and arguments. You are responsible for installing or building an erlang_ls escript that is compatible with your project's OTP version.