Skip to content

Commit

Permalink
drop 1.12 support
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaszsamson committed Aug 22, 2024
1 parent fe1a056 commit 43f6fe4
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 23 deletions.
15 changes: 0 additions & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,6 @@ jobs:
fail-fast: false
matrix:
include:
- elixir: 1.12.x
otp: 22.x
tests_may_fail: false
- elixir: 1.12.x
otp: 23.x
tests_may_fail: false
- elixir: 1.12.x
otp: 24.x
tests_may_fail: false
- elixir: 1.13.x
otp: 22.x
tests_may_fail: false
Expand Down Expand Up @@ -98,12 +89,6 @@ jobs:
fail-fast: false
matrix:
include:
- elixir: 1.12.x
otp: 22.x
- elixir: 1.12.x
otp: 23.x
- elixir: 1.12.x
otp: 24.x
- elixir: 1.13.x
otp: 22.x
- elixir: 1.13.x
Expand Down
2 changes: 1 addition & 1 deletion apps/debug_adapter/mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ defmodule ElixirLS.DebugAdapter.MixProject do
config_path: "../../config/config.exs",
deps_path: "../../deps",
lockfile: "../../mix.lock",
elixir: ">= 1.12.0",
elixir: ">= 1.13.0",
build_embedded: false,
start_permanent: true,
build_per_environment: false,
Expand Down
4 changes: 2 additions & 2 deletions apps/elixir_ls_utils/lib/minimum_version.ex
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ defmodule ElixirLS.Utils.MinimumVersion do
end

def check_elixir_version do
if Version.match?(System.version(), ">= 1.12.0") do
if Version.match?(System.version(), ">= 1.13.0") do
if Regex.match?(~r/-/, System.version()) do
{:error,
"Only official elixir releases are supported. (Currently running v#{System.version()})"}
Expand All @@ -25,7 +25,7 @@ defmodule ElixirLS.Utils.MinimumVersion do
end
else
{:error,
"Elixir versions below 1.12.0 are not supported. (Currently running v#{System.version()})"}
"Elixir versions below 1.13.0 are not supported. (Currently running v#{System.version()})"}
end
end

Expand Down
2 changes: 1 addition & 1 deletion apps/elixir_ls_utils/mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ defmodule ElixirLS.Utils.MixProject do
deps_path: "../../deps",
elixirc_paths: elixirc_paths(Mix.env()),
lockfile: "../../mix.lock",
elixir: ">= 1.12.0",
elixir: ">= 1.13.0",
build_embedded: false,
start_permanent: false,
build_per_environment: false,
Expand Down
4 changes: 2 additions & 2 deletions apps/language_server/lib/language_server/ast_utils.ex
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ defmodule ElixirLS.LanguageServer.AstUtils do
end

lines = SourceFile.lines(literal)
# meta[:indentation] is nil on 1.12
# meta[:indentation] is nil on 1.12, not sure this is needed in 1.13+
indentation = Keyword.get(meta, :indentation, 0)

{line + length(lines), indentation + get_delimiter_length(delimiter)}
Expand Down Expand Up @@ -224,7 +224,7 @@ defmodule ElixirLS.LanguageServer.AstUtils do

{last[:line] - 1, last[:column] - 1 + last_length}
else
# last is nil on 1.12
# last is nil on 1.12, not sure this is needed in 1.13+
get_eoe_by_formatting(ast, {line, column}, options)
end

Expand Down
2 changes: 1 addition & 1 deletion apps/language_server/mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ defmodule ElixirLS.LanguageServer.MixProject do
[
app: :language_server,
version: @version,
elixir: ">= 1.12.0",
elixir: ">= 1.13.0",
build_path: "../../_build",
config_path: "../../config/config.exs",
deps_path: "../../deps",
Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ defmodule ElixirLS.Mixfile do
start_permanent: Mix.env() == :prod,
build_per_environment: false,
deps: deps(),
elixir: ">= 1.12.0",
elixir: ">= 1.13.0",
dialyzer: [
plt_add_apps: [:dialyxir_vendored, :debugger, :dialyzer, :ex_unit, :hex, :mix],
flags: [
Expand Down

0 comments on commit 43f6fe4

Please sign in to comment.