当 mix 无法启动时,使用 erlang OTP 25 重新编译 Elixir 模块

问题描述 投票:0回答:1

每当我使用“mix deps.clean”、“mix deps.get”或任何真正的 mix 命令时,我都会收到以下错误:

15:18:28.936 [error] beam\beam_load.c(86): Error loading module 'Elixir.Code.Formatter':
  lambda already defined for label 747. To fix this, please recompile this module with an OTP 25 compiler.

15:18:28.936 [error] Loading of c:/ProgramData/chocolatey/lib/Elixir/lib/elixir/ebin/Elixir.Code.Formatter.beam failed: :badfile

** (UndefinedFunctionError) function Code.Formatter.locals_without_parens/0 is undefined (module Code.Formatter is not available)
    (elixir 1.13.3) Code.Formatter.locals_without_parens()
    (elixir 1.13.3) lib/code/normalizer.ex:22: Code.Normalizer.normalize/2
    (elixir 1.13.3) lib/code.ex:1107: Code.quoted_to_algebra/2

我尝试用巧克力更新、删除并重新安装 erlang 和 Elixir,但没有效果。请问如何根据需要重新编译 Elixir 模块?

谢谢你!

erlang elixir chocolatey
1个回答
0
投票

我在 Elixir 降级时也遇到了同样的问题。对我来说,解决方案也是删除文件夹“C:\Users\USERNAME\AppData\Local\mix”。操作系统是Windows 10

© www.soinside.com 2019 - 2024. All rights reserved.