【发布时间】:2022-10-02 14:19:51
【问题描述】:
我已经安装了 Erlang OTP 25.0、erlide 0.56.0、Eclipse 2022-09 和 Java 18。我创建了一个新的 Erlang 项目和模块。当我尝试通过单击“打开”来打开 .erl 文件时,出现如下所示的异常。
Failed to create the part\'s controls.
java.lang.IllegalArgumentException: The file\'s actual encoding doesn\'t match the declared one
at org.erlide.ui.editors.erl.ErlangEditor.filterUTF8Exception(ErlangEditor.java:979)
at org.erlide.ui.editors.erl.ErlangEditor.createPartControl(ErlangEditor.java:940)
at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.createPartControl(CompatibilityPart.java:158)
.....
Caused by: java.lang.IllegalArgumentException: Argument not valid
at org.eclipse.swt.SWT.error(SWT.java:4899)
at org.eclipse.swt.SWT.error(SWT.java:4833)
但是,我可以使用 RightClick-->OpenWith-->TextEditor 打开 .erl 文件。但是,它不会根据语法突出显示代码。
标签: eclipse erlang erlang-otp erlide