You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

ElixirLS与Erlang/OTP版本兼容问题及服务器崩溃求助

问题说明

1. ElixirLS版本兼容性需求

ElixirLS v0.17.10与编译Elixir 1.15.7所用的Erlang/OTP 25.3.2.7不兼容,现需寻找与该Erlang/OTP版本兼容、且最接近v0.17.10的ElixirLS版本。当前ElixirLS服务器已崩溃5次后终止,怀疑兼容性问题是根源。

2. 崩溃日志信息

服务器崩溃前重复出现5次的日志如下:

Installing ElixirLS release v0.17.10
Running in c:/Users/Gordon/servy/lib/servy
Install complete
[Info  - 5:32:40 PM] Started ElixirLS v0.17.10
[Info  - 5:32:40 PM] Running in c:/Users/Gordon/servy/lib/servy
[Info  - 5:32:40 PM] ElixirLS built with elixir "1.15.7" on OTP "25"
[Info  - 5:32:40 PM] Running on elixir "1.15.7 (compiled with Erlang/OTP 25)" on OTP "25"
[Info  - 5:32:40 PM] Protocols are not consolidated
[Info  - 5:32:40 PM] Elixir sources not found (checking in c:/home/runner/work/elixir/elixir).           Code navigation to Elixir modules disabled.
[Info  - 5:32:40 PM] Received client configuration via workspace/configuration
%{"additionalWatchedExtensions" => [], "autoBuild" => true, "autoInsertRequiredAlias" => true,      "dialyzerEnabled" => true, "dialyzerFormat" => "dialyxir_long", "dialyzerWarnOpts" => [], "enableTestLenses" => false, "envVariables" => %{}, "fetchDeps" => false, "languageServerOverridePath" => "", "mixEnv" => "test", "mixTarget" => "", "projectDir" => "C:\\Users\\Gordon\\servy", "signatureAfterComplete" => true, "suggestSpecs" => true, "trace" => %  {"server" => "off"}}

[Error - 5:32:40 PM] 项目目录c:/Users/Gordon/servy/lib/servy/Users/Gordon/servy不存在
[Info - 5:32:42 PM] 与服务器的连接已关闭。服务器将重启。
true

3. 项目目录配置问题

实际项目目录应为c:/Users/Gordon/servy,但日志中出现多余的lib/servy前缀。当前launch.json内容如下:

{
"version": "0.2.0",
"configurations": [
{
"name": "Elixir Debug",
"type": "mix_task",
"request": "launch",
"task": "run",
"internalConsoleOptions": "neverOpen",
"projectDir": "c:\Users\Gordon\servy"
}
]
}

已尝试修改launch.json及settings.json中的ElixirLS项目目录配置,重新卸载并安装ElixirLS,但问题未解决。


内容的提问来源于stack exchange,提问作者user22796925

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.05 03:16:35