Vel*_*jko 4 erlang elixir erlang-otp language-server-protocol asdf-vm
最近我遇到了无法解决的问题。这是关于 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}}
Run Code Online (Sandbox Code Playgroud)
ElixirLS 无法正确编译,正如它所说,它在没有 EEP48 文档的情况下编译。我按照 ElixirLS 安装指南进行操作,但无法使其工作。Erlang 和 elixir 是随 asdf 安装的,我在 Arch Linux 上运行 Elixir 1.14.2(用 Erlang/OTP 25 编译)。
感谢帮助!
请参阅文档的“获取 Erlang 文档”asdf-erlang部分,特别是:
export KERL_BUILD_DOCS="yes"
Run Code Online (Sandbox Code Playgroud)
和
注意:执行前必须设置环境变量
asdf install erlang <version>才能生效。
| 归档时间: |
|
| 查看次数: |
1513 次 |
| 最近记录: |