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
相关产品推荐
相关产品推荐

