elixir(1.8.1) 和 erlang(21.3.5) 是通过 .tool-versions(ASDF) 文件在本地设置的。
ElixirLS 使用上述版本的 elixir 启动,但需要更高版本。
** (UndefinedFunctionError) function ElixirLS.Utils.OutputDevice.get_opts/0 is undefined (module ElixirLS.Utils.OutputDevice is not available)
ElixirLS.Utils.OutputDevice.get_opts()
lib/wire_protocol.ex:33: ElixirLS.Utils.WireProtocol.intercept_output/2
lib/language_server/cli.ex:6: ElixirLS.LanguageServer.CLI.main/0
(stdlib) erl_eval.erl:680: :erl_eval.do_apply/6
(elixir) lib/code.ex:232: Code.eval_string/3
[Info - 1:09:58 PM] Connection to server got closed. Server will restart.
** (UndefinedFunctionError) function ElixirLS.Utils.OutputDevice.get_opts/0 is undefined (module ElixirLS.Utils.OutputDevice is not available)
ElixirLS.Utils.OutputDevice.get_opts()
lib/wire_protocol.ex:33: ElixirLS.Utils.WireProtocol.intercept_output/2
lib/language_server/cli.ex:6: ElixirLS.LanguageServer.CLI.main/0
(stdlib) erl_eval.erl:680: :erl_eval.do_apply/6
(elixir) lib/code.ex:232: Code.eval_string/3
[Info - 1:09:59 PM] Connection to server got closed. Server will restart.
** (UndefinedFunctionError) function ElixirLS.Utils.OutputDevice.get_opts/0 is undefined (module ElixirLS.Utils.OutputDevice is not available)
ElixirLS.Utils.OutputDevice.get_opts()
lib/wire_protocol.ex:33: ElixirLS.Utils.WireProtocol.intercept_output/2
lib/language_server/cli.ex:6: ElixirLS.LanguageServer.CLI.main/0
(stdlib) erl_eval.erl:680: :erl_eval.do_apply/6
(elixir) lib/code.ex:232: Code.eval_string/3
[Info - 1:10:00 PM] Connection to server got closed. Server will restart.
** (UndefinedFunctionError) function ElixirLS.Utils.OutputDevice.get_opts/0 is undefined (module ElixirLS.Utils.OutputDevice is not available)
ElixirLS.Utils.OutputDevice.get_opts()
lib/wire_protocol.ex:33: ElixirLS.Utils.WireProtocol.intercept_output/2
lib/language_server/cli.ex:6: ElixirLS.LanguageServer.CLI.main/0
(stdlib) erl_eval.erl:680: :erl_eval.do_apply/6
(elixir) lib/code.ex:232: Code.eval_string/3
[Info - 1:10:02 PM] Connection to server got closed. Server will restart.
** (UndefinedFunctionError) function ElixirLS.Utils.OutputDevice.get_opts/0 is undefined (module ElixirLS.Utils.OutputDevice is not available)
ElixirLS.Utils.OutputDevice.get_opts()
lib/wire_protocol.ex:33: ElixirLS.Utils.WireProtocol.intercept_output/2
lib/language_server/cli.ex:6: ElixirLS.LanguageServer.CLI.main/0
(stdlib) erl_eval.erl:680: :erl_eval.do_apply/6
(elixir) lib/code.ex:232: Code.eval_string/3
[Error - 1:10:02 PM] Connection to server got closed. Server will not be restarted.
我可以进行扩展以使用 elixir 的全球版本(由 ASDF 设置)吗?