最近我遇到了一个解决不了的问题。这是关于Elixir LS的,当我运行语言服务器时,它显示这个消息:
{"jsonrpc":"2.0","method":"window/logMessage","params":{"message":"Started ElixirLS v0.12.0","type":3}}
{"jsonrpc":"2.0","method":"window/logMessage","params":{"message":"ElixirLS built with elixir "1.14.2" on OTP "25"","type":3}}
{"jsonrpc":"2.0","method":"window/logMessage","params":{"message":"Running on elixir "1.14.2 (compiled with Erlang/OTP 25)" on OTP "25"","type":3}}
{"jsonrpc":"2.0","method":"window/showMessage","params":{"message":"OTP compiled without EEP48 documentation chunks","type":2}}
{"jsonrpc":"2.0","method":"window/logMessage","params":{"message":"OTP compiled without EEP48 documentation chunks. Language features for erlang modules will run in limited mode. Please reinstall or rebuild OTP with approperiate flags.","type":2}}
{"jsonrpc":"2.0","method":"window/logMessage","params":{"message":"Elixir sources not found (checking in /home/build/elixir). Code navigation to Elixir modules disabled.","type":3}}
ElixirLS不能正确编译,正如它所说,它没有EEP48文档进行编译。我遵循了ElixirLS安装指南,但我无法使其工作。我在Arch Linux上运行的是elixir 1.14.2(用Erlang/OTP 25编译)。
谢谢你的帮助!
参见asdf-erlang
文档的获取Erlang文档部分,特别是:
export KERL_BUILD_DOCS="yes"
和
注意:环境变量必须在
asdf install erlang <version>
执行前设置,才能生效。