我是 Erlang 和 Stack Overflow 编程的初学者,所以我希望这不是一个非常愚蠢的问题。
我已经在 Windows 10 上从官方网站安装了 Erlang/OTP 20.1。我正在尝试从 erl、werl 或 git bash(从正确的目录)编译一些简单的 Erlang 模块,但出现以下错误:
3> c(useless).
useless.erl: internal error in beam_asm;
crash reason: undef
in function maps:size/1
called as maps:size(#{})
in call from beam_dict:atom/2 (beam_dict.erl, line 88)
in call from beam_asm:assemble/5 (beam_asm.erl, line 65)
in call from beam_asm:module/5 (beam_asm.erl, line 62)
in call from compile:beam_asm/2 (compile.erl, line 1454)
in call from compile:'-internal_comp/5-anonymous-1-'/3 (compile.erl, line 342)
in call from compile:fold_comp/4 (compile.erl, line 369)
in call from compile:internal_comp/5 (compile.erl, line 353)
你认为是什么问题?无论保存在哪里,每个模块都会出现完全相同的错误。有趣的是,我昨天可以毫无问题地编译和运行这些模块,但我昨天遇到了同样的问题!
非常感谢!
贝尔纳特