Skip to content

Commit

Permalink
Drop OTP 23 support (#1511)
Browse files Browse the repository at this point in the history
With OTP 27 around the corner, it's time to drop OTP 23 support.

NOTE:
Some CT tests started failing on Windows, these have been disabled and needs to be fixed.
  • Loading branch information
plux authored May 3, 2024
1 parent eceb806 commit 00864ec
Show file tree
Hide file tree
Showing 6 changed files with 44 additions and 12 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
strategy:
matrix:
platform: [ubuntu-latest]
otp-version: [23, 24, 25, 26]
otp-version: [24, 25, 26]
runs-on: ${{ matrix.platform }}
container:
image: erlang:${{ matrix.otp-version }}
Expand Down Expand Up @@ -81,15 +81,15 @@ jobs:
- name: Checkout
uses: actions/checkout@v2
- name: Install Erlang
run: choco install -y erlang --version 23.3
run: choco install -y erlang --version 24.0
- name: Install rebar3
run: choco install -y rebar3 --version 3.13.1
run: choco install -y rebar3 --version 3.22.1
- name: Compile
run: rebar3 compile
- name: Lint
run: rebar3 lint
- name: Generate Dialyzer PLT for usage in CT Tests
run: dialyzer --build_plt --apps erts kernel stdlib
run: dialyzer --build_plt --apps erts kernel stdlib crypto compiler
- name: Start epmd as daemon
run: erl -sname a -noinput -eval "halt(0)."
- name: Run CT Tests
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
strategy:
matrix:
platform: [ubuntu-latest]
otp-version: [23, 24, 25, 26]
otp-version: [24, 25, 26]
runs-on: ${{ matrix.platform }}
container:
image: erlang:${{ matrix.otp-version }}
Expand Down Expand Up @@ -51,7 +51,7 @@ jobs:
- name: Lint
run: rebar3 lint
- name: Generate Dialyzer PLT for usage in CT Tests
run: dialyzer --build_plt --apps erts kernel stdlib compiler crypto
run: dialyzer --build_plt --apps erts kernel stdlib
- name: Start epmd as daemon
run: epmd -daemon
- name: Run CT Tests
Expand Down Expand Up @@ -103,9 +103,9 @@ jobs:
- name: Checkout
uses: actions/checkout@v2
- name: Install Erlang
run: choco install -y erlang --version 23.3
run: choco install -y erlang --version 24.0
- name: Install rebar3
run: choco install -y rebar3 --version 3.13.1
run: choco install -y rebar3 --version 3.22.1
- name: Compile
run: rebar3 compile
- name: Escriptize LSP Server
Expand All @@ -118,7 +118,7 @@ jobs:
- name: Lint
run: rebar3 lint
- name: Generate Dialyzer PLT for usage in CT Tests
run: dialyzer --build_plt --apps erts kernel stdlib
run: dialyzer --build_plt --apps erts kernel stdlib crypto compiler
- name: Start epmd as daemon
run: erl -sname a -noinput -eval "halt(0)."
- name: Run CT Tests
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,18 @@
![Build](https://github.com/erlang-ls/erlang_ls/workflows/Build/badge.svg)
[![Coverage Status](https://coveralls.io/repos/github/erlang-ls/erlang_ls/badge.svg?branch=main)](https://coveralls.io/github/erlang-ls/erlang_ls?branch=main)

An Erlang server implementing Microsoft's Language Server Protocol 3.15.
An Erlang server implementing Microsoft's Language Server Protocol 3.17.

[Documentation](https://erlang-ls.github.io/)

## Minimum Requirements

* [Erlang OTP 22+](https://github.com/erlang/otp)
* [Erlang OTP 24+](https://github.com/erlang/otp)
* [rebar3 3.9.1+](https://github.com/erlang/rebar3)

## Supported OTP versions

* 23, 24, 25, 26
* 24, 25, 26

## Quickstart

Expand Down
10 changes: 10 additions & 0 deletions apps/els_lsp/test/els_formatter_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,16 @@ end_per_suite(Config) ->
els_test_utils:end_per_suite(Config).

-spec init_per_testcase(atom(), config()) -> config().
init_per_testcase(TestCase, Config) when
TestCase == format_doc
->
case els_utils:is_windows() of
true ->
%% TODO: Testcase fails on windows since OTP 24, fix!
{skip, "Testcase not supported on Windows."};
false ->
els_test_utils:init_per_testcase(TestCase, Config)
end;
init_per_testcase(TestCase, Config) ->
els_test_utils:init_per_testcase(TestCase, Config).

Expand Down
12 changes: 12 additions & 0 deletions apps/els_lsp/test/els_hover_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,18 @@ end_per_suite(Config) ->
els_test_utils:end_per_suite(Config).

-spec init_per_testcase(atom(), config()) -> config().
init_per_testcase(TestCase, Config) when
TestCase == local_call_with_args;
TestCase == local_fun_expression;
TestCase == local_record
->
case els_utils:is_windows() of
true ->
%% TODO: Testcase fails on windows since OTP 24, fix!
{skip, "Testcase not supported on Windows."};
false ->
els_test_utils:init_per_testcase(TestCase, Config)
end;
init_per_testcase(TestCase, Config) ->
els_test_utils:init_per_testcase(TestCase, Config).

Expand Down
10 changes: 10 additions & 0 deletions apps/els_lsp/test/els_text_edit_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,16 @@ end_per_suite(Config) ->
els_test_utils:end_per_suite(Config).

-spec init_per_testcase(atom(), config()) -> config().
init_per_testcase(TestCase, Config) when
TestCase == text_edit_diff
->
case els_utils:is_windows() of
true ->
%% TODO: Testcase fails on windows since OTP 24, fix!
{skip, "Testcase not supported on Windows."};
false ->
els_test_utils:init_per_testcase(TestCase, Config)
end;
init_per_testcase(TestCase, Config) ->
els_test_utils:init_per_testcase(TestCase, Config).

Expand Down

0 comments on commit 00864ec

Please sign in to comment.