I have installed Erlang OTP 25.0, erlide 0.56.0, Eclipse 2022-09 & Java 18. I have created a new Erlang project and module. When I tried to open the .erl file by clicking on "Open", I am getting an exception shown below.
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)
However, I am able to open the .erl file using RightClick-->OpenWith-->TextEditor. But, it does not highlight the code based on syntax.