Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop OTP 23 support #1511

Merged
merged 8 commits into from
May 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading