Skip to content

Commit 10902df

Browse files
authored
More cleanup of older OTP versions (#15170)
* More cleanup since we require OTP 27 * Remove mentions to OTP25- in docs * Use same versions in Getting Started as in Mix guide
1 parent 44e0541 commit 10902df

4 files changed

Lines changed: 6 additions & 15 deletions

File tree

lib/elixir/lib/task/supervised.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,8 @@ defmodule Task.Supervised do
122122
function: fun,
123123
args: args,
124124
reason: {log_value(kind, value), __STACKTRACE__},
125-
# TODO use Process.get_label/0 when we require Erlang/OTP 27+
126-
process_label: Process.get(:"$process_label", :undefined)
125+
# using :proc_lib over Process because we want the :undefined default, not nil
126+
process_label: :proc_lib.get_label(self())
127127
}
128128
},
129129
%{

lib/elixir/pages/getting-started/introduction.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ Let's get started.
1515

1616
If you haven't yet installed Elixir, visit our [installation page](https://elixir-lang.org/install.html). Once you are done, you can run `elixir --version` to get the current Elixir version. The requirements for this guide are:
1717

18-
* Elixir 1.15.0 onwards
19-
* Erlang/OTP 26 onwards
18+
* Elixir 1.18.0 onwards
19+
* Erlang/OTP 27 onwards
2020

2121
If you are looking for other resources for learning Elixir, you can also consult the [learning page](https://elixir-lang.org/learning.html) of the official website.
2222

lib/iex/lib/iex.ex

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ defmodule IEx do
2929
aren't explicitly documented and where the function name is in the form
3030
of `__foo__`.
3131
32-
Autocomplete is available by default on Windows shells from Erlang/OTP 26.
32+
Autocomplete is available by default on Windows shells.
3333
3434
## Encoding and coloring
3535
@@ -41,14 +41,7 @@ defmodule IEx do
4141
PowerShell).
4242
4343
Similarly, ANSI coloring is enabled by default on most Unix terminals.
44-
They are also available on Windows consoles from Windows 10 and on
45-
Erlang/OTP 26 or later. For earlier Erlang/OTP versions, you can
46-
explicitly enable it for the current user in the registry by running
47-
the following command:
48-
49-
$ reg add HKCU\Console /v VirtualTerminalLevel /t REG_DWORD /d 1
50-
51-
After running the command above, you must restart your current console.
44+
They are also available on Windows consoles from Windows 10.
5245
5346
## Shell history
5447

lib/mix/lib/mix/tasks/profile.tprof.ex

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ defmodule Mix.Tasks.Profile.Tprof do
99
@moduledoc """
1010
Profiles the given file or expression using Erlang's `tprof` tool.
1111
12-
Requires Erlang/OTP27 or above.
13-
1412
[`:tprof`](`:tprof`) is an experimental module introduced in Erlang/OTP 27 which
1513
provides a unified API for measuring call count, time, and allocation, and aims to
1614
replace [`:eprof`](`:eprof`) and [`:cprof`](`:cprof`).

0 commit comments

Comments
 (0)