Skip to content

Commit

Permalink
Update Erlang versions supported
Browse files Browse the repository at this point in the history
Support OTP23, OTP24 and OTP25.
  • Loading branch information
bjosv committed Jan 25, 2023
1 parent f123e96 commit 2e65f22
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 12 deletions.
Expand Up @@ -33,10 +33,9 @@ public final class ProjectPreferencesConstants {
public static final String DEFAULT_EXTERNAL_INCLUDES = "";

public static final String RUNTIME_VERSION = "backend_version";
public static final RuntimeVersion DEFAULT_RUNTIME_VERSION = new RuntimeVersion(21);
public static final RuntimeVersion[] SUPPORTED_VERSIONS = { new RuntimeVersion(19),
new RuntimeVersion(20), new RuntimeVersion(21), new RuntimeVersion(22),
new RuntimeVersion(23) };
public static final RuntimeVersion DEFAULT_RUNTIME_VERSION = new RuntimeVersion(23);
public static final RuntimeVersion[] SUPPORTED_VERSIONS = { new RuntimeVersion(23),
new RuntimeVersion(24), new RuntimeVersion(25) };
public static final RuntimeVersion FALLBACK_RUNTIME_VERSION = ProjectPreferencesConstants.SUPPORTED_VERSIONS[0];

public static final String PROJECT_EXTERNAL_MODULES = "external_modules";
Expand Down
Expand Up @@ -5,7 +5,7 @@

public interface IRuntimeInfoCatalog {

RuntimeVersion OLDEST_SUPPORTED_VERSION = new RuntimeVersion(17);
RuntimeVersion OLDEST_SUPPORTED_VERSION = new RuntimeVersion(23);

Collection<RuntimeInfo> getRuntimes();

Expand Down
Expand Up @@ -26,18 +26,18 @@ public void debuggerIsAvailable() {
}

@Test
public void debugger17IsAvailable() {
checkBundleForTwoEbinElements("org.erlide.kernel.debugger", "/ebin/17");
public void debugger23IsAvailable() {
checkBundleForTwoEbinElements("org.erlide.kernel.debugger", "/ebin/23");
}

@Test
public void debugger18IsAvailable() {
checkBundleForTwoEbinElements("org.erlide.kernel.debugger", "/ebin/18");
public void debugger24IsAvailable() {
checkBundleForTwoEbinElements("org.erlide.kernel.debugger", "/ebin/24");
}

@Test
public void debugger19IsAvailable() {
checkBundleForTwoEbinElements("org.erlide.kernel.debugger", "/ebin/19");
public void debugger25IsAvailable() {
checkBundleForTwoEbinElements("org.erlide.kernel.debugger", "/ebin/25");
}

private void checkBundleForTwoEbinElements(final String pluginId, final String path) {
Expand Down
Expand Up @@ -123,7 +123,7 @@ public void setupProject() throws CoreException {
prj.refreshLocal(IResource.DEPTH_INFINITE, null);
final IErlProject erlPrj = ErlideTestUtils.createErlProject(prj);
final ErlangProjectProperties properties = erlPrj.getProperties();
final RuntimeVersion _runtimeVersion = new RuntimeVersion(18);
final RuntimeVersion _runtimeVersion = new RuntimeVersion(23);
properties.setRequiredRuntimeVersion(_runtimeVersion);
erlPrj.setProperties(properties);
ExternalBuilder.DEBUG = true;
Expand Down

0 comments on commit 2e65f22

Please sign in to comment.