Elixir
Elixir Core Team
Elixir v1.18.0 released
Full announcement: Elixir v1.18 released: type checking of calls, LSP listeners, built-in JSON, and more - The Elixir programming language
Release notes: Release v1.18.0 · elixir-lang/elixir · GitHub
Changelog
1. Enhancements
Elixir
- [CLI] Add experimental PowerShell scripts for
elixir,elixirc, andmixon Windows. Those provide a safer entry point for running Elixir from other platforms - [Calendar] Add
Duration.to_string/1 - [Code] Support several migration options in
Code.format_string!/2 - [Code] Add parenthesis around
--and---inCode.format_string!/2to make precedence clearer - [Code] Include more metadata in
Code.string_to_quoted/2whentoken_metadata: trueto help compute ranges from the AST - [Code.Fragment] Have
:capture_argas its own entry inCode.Fragment.surround_context/2 - [Config] Add
Config.read_config/1 - [Enumerable] Add
Enum.product_by/2andEnum.sum_by/2 - [Exception] Add
MissingApplicationsErrorexception to denote missing applications - [JSON] Add a new
JSONmodule with encoding and decoding functionality - [JSON] Implement
JSON.Encoderfor all Calendar types - [Kernel] Update source code parsing to match UTS #55 latest recommendations. In particular, mixed script is allowed in identifiers as long as they are separate by underscores (
_), such ashttp_сервер. Previously allowed highly restrictive identifiers, which mixed Latin and other scripts, such as the japanese word for t-shirt,Tシャツ, now require the underscore as well - [Kernel] Warn on bidirectional confusability in identifiers
- [Kernel] Verify the type of the binary generators
- [Kernel] Track the type of tuples in patterns and inside
elem/2 - [Kernel] Perform validation of root AST nodes in
unquoteandunquote_splicingto catch bugs earlier - [Kernel] Add source, behaviour, and record information to Docs chunk metadata
- [Kernel] Support deterministic builds in tandem with Erlang by setting
ERL_COMPILER_OPTIONS=deterministic. Keep in mind deterministic builds strip source and other compile time information, which may be relevant for programs - [Kernel] Allow aliases and imports to be enabled conditionally in module body
- [List] Add
List.ends_with?/2 - [Macro] Improve
dbghandling ofif/2,with/1and of code blocks - [Macro] Add
Macro.struct_info!/2to return struct information mirroringmod.__info__(:struct) - [Registry] Add
Registry.lock/3for local locking - [PartitionSupervisor] Add
PartitionSupervisor.resize!/2to resize the number of partitions in a supervisor (up to the limit it was started with) - [Process] Handle arbitrarily high integer values in
Process.sleep/1 - [Protocol] Add
@undefined_impl_descriptionto customize error message when an implementation is undefined - [Protocol] Add
__deriving__/1as optional macro callback toProtocol, no longer requiring empty implementations - [String] Inspect special whitespace and zero-width characters using their Unicode representation
- [String] Update Unicode to 16.0
ExUnit
- [ExUnit] Support parameterized tests on
ExUnit.Case - [ExUnit] Support test groups: tests in the same group never run concurrently
- [ExUnit.Case] Add
test_pidas a tag
IEx
- [IEx] Add
IEx.configure(auto_reload: true)to automatically pick up modules recompiled from other operating system processes - [IEx] Add
:dot_iexsupport toIEx.configure/1 - [IEx] Add report for normal/shutdown exits in IEx
Mix
- [mix compile] Ensure only a single operating system process can compile at a given time
- [mix deps.get] Ensure only a single operating system process can fetch deps at a given time
- [mix format] Add
mix format --migrateto migrate from deprecated functionality - [mix format] Add new options and metadata to improve formatting applying by editors and other environments
- [mix test] Taint failure manifest if requiring or compiling tests fail
- [Mix.Project] Add a
:listenersconfiguration to listen to compilation events from the current and other operating system processes - [Mix.Task.Compiler] Add API for fetching all persisted compiler diagnostics
- [Mix.Task.Compiler] Add API for fetching all compiler tasks
2. Bug fixes
Elixir
- [Code] Fix delimiter metadata for single quoted atoms and remote calls in
Code.string_to_quoted/2 - [Code.Formatter] Fix formatter adding extra escapes to quoted remote calls
- [Code.Fragment] Properly handle keyword keys as their own entry
- [Inspect.Algebra] Ensure
next_break_fitsrespectsline_length - [Kernel] Validate AST on
unquoteandunquote_splicingto provide better error reports instead of failing too late inside the compiler - [Kernel] Avoid crashes when emitting diagnostics on code using \t for indentation
- [Module] Include module attribute line and name when tracing its aliases
- [Stream] Do not halt streams twice in
Stream.transform/5 - [URI] Fix a bug when a schemaless URI is given to
URI.merge/2
ExUnit
- [ExUnit.Assertions] Raise if guards are used in
assert/1with= - [ExUnit.Assertions] Format inserted/deleted maps in list assertions
IEx
- [IEx.Helpers]
IEx.Helpers.recompile/0will reload modules changed by other operating system processes
Mix
- [mix compile] Ensure warnings from external resources are emitted with
--all-warningswhen files do not change - [mix deps.compile] Fix escaping issues when invoking
rebar3in some cases - [mix escript] Fix escript layout and support storing
privdirectories - [mix release] Make
.appfiles deterministic in releases - [Mix.Shell] Fix
Mix.Shellon Windows when outputting non UTF-8 characters
3. Soft deprecations (no warnings emitted)
Elixir
- [Inspect.Algebra]
color/3is deprecated in favor ofcolor_doc/3 - [Inspect.Algebra]
fold_doc/2is deprecated in favor offold/2 - [Kernel] Deprecate
unlessin favor ofif. Usemix format --migrateto automate the migration - [Macro]
Macro.struct!/2is deprecated in favor ofMacro.struct_info!/2 - [Protocol] Defining
__deriving__/3inside theAnyimplementation is deprecated, derive it inside the protocol definition itself
4. Hard deprecations
EEx
- [EEx]
<%#is deprecated in favor of<%!--or<% # - [EEx]
c:EEx.handle_text/2is deprecated in favor ofc:EEx.handle_text/3
Elixir
- [Code] Setting
:warnings_as_errorsis deprecated viaCode.put_compiler_option/2. This must not affect developers, as the:warnings_as_errorsoption is managed by Mix tasks, and not directly used via theCodemodule - [Enumerable] Deprecate returning a two-arity function in
Enumerable.slice/1 - [List]
List.zip/1is deprecated in favor ofEnum.zip/1 - [Module] Deprecate
Module.eval_quoted/3in favor ofCode.eval_quoted/3 - [Range] Deprecate inferring negative ranges on
Range.new/2 - [Tuple]
Tuple.append/2is deprecated, useTuple.insert_at/3instead
Mix
- [mix cmd] Deprecate
mix cmd --app APPin favor ofmix do --app APP - [mix compile]
:warnings_as_errorsconfiguration in:elixirc_optionsis deprecated. Instead pass the--warnings-as-errorsflag tomix compile. Alternatively, you might alias the task:aliases: [compile: "compile --warnings-as-errors"] - [mix test]
:warnings_as_errorsconfiguration in:test_elixirc_optionsis deprecated. Instead pass the--warnings-as-errorsflag tomix test. Alternatively, you might alias the task:aliases: [test: "test --warnings-as-errors"] - [Mix.Tasks.Compile] Deprecate
compilers/0in favor ofMix.Task.Compiler.compilers/0
v1.17
The CHANGELOG for v1.17 releases can be found in the v1.17 branch.
Most Liked
josevalim
Creator of Elixir
After types release, all words starting with t shall be written as types.
50
josevalim
Creator of Elixir
v1.18.1 is out addressing the feedback received so far: Release v1.18.1 · elixir-lang/elixir · GitHub
1. Enhancements
- [Kernel] Do not emit type violation warnings when comparing or matching against literals
- [Kernel] Do not validate clauses of private overridable functions
2. Bug fixes
Elixir
- [Code.Fragment] Ensure
Code.Fragment.container_cursor_to_quoted/2with:trailing_fragmentparses expressions that were supported in previous versions - [Kernel] Do not crash when typing violation is detected on dynamic dispatch
- [Kernel] Properly annotate the source for warnings emitted by the compiler with the
@fileannotation - [Kernel] Properly annotate the source for warnings emitted by the type system with the
@fileannotation - [Kernel] Remove
:no_parensmetadata when using capture with arity on all cases - [Kernel] Ensure diagnostic traces are kept backwards compatible
ExUnit
- [ExUnit.Case] Ensure async groups do not run concurrenly while the test suite is still loading
- [ExUnit.Case] Ensure
--repeat-until-failurecan be combined with groups
Mix
- [mix compile.elixir] Store compilation results if compilation fails due to
--warnings-as-errors - [mix deps.loadpaths] Add build lock
- [mix escript.build] Ensure build succeeds when protocol consolidation is disabled
- [Mix.Shell] Ensure encoding is properly respected on Windows and Unix systems
12
Sorc96
Truly amazing work on the type system and the language in general. Thanks to everybody who contributed towards making this possible.
10
Popular in News
Release: Release v1.9.2 · elixir-lang/elixir · GitHub
1. Enhancements
Mix
[mix release] Allow {:from_app, app_name} as a version for re...
New
Elixir v1.4.5 has been released with fixes for those interested in running Erlang/OTP 20: Release v1.4.5 · elixir-lang/elixir · GitHub
New
Release: Release v1.13.0-rc.0 · elixir-lang/elixir · GitHub
The focus behind Elixir v1.13 has been on tooling, mainly tooling related to...
New
1. Enhancements
Elixir
[Regex] Raise error message when regexes are used as default values in struct fields for compatibility with Erlan...
New
Hello folks,
Elixir v1.4.0-rc.0 has been released. This is a release candidate for the upcoming Elixir v1.4.0.
The most notable changes...
New
1. Enhancements
Elixir
[Kernel] Speed up loading of runtime modules in the parallel compiler
[Range] Optimize range membership implement...
New
Release: https://github.com/elixir-lang/elixir/releases/tag/v1.13.3
1. Enhancements
Mix
[mix format] Supply file and line to formatter ...
New
Release: Release v1.12.3 · elixir-lang/elixir · GitHub
1. Bug fixes
Elixir
[Code] Make sure that bindings in the default context return...
New
Release: Release v1.10.0 · elixir-lang/elixir · GitHub
Support for Erlang/OTP 21+
Elixir v1.10 requires Erlang/OTP 21+, allowing Elixir ...
New
Today we celebrate 15 years since Elixir’s first commit! To mark the occasion, we are glad to announce the first release candidate for El...
New
Other popular topics
None of the current solutions worked well for me, so I went ahead and built a user management system from scratch.
This project took far...
New
I have a another noob question about loop. Since elixir is immutable, while loop is not directly possible.
total = 10
while total != 0
...
New
Erlang/OTP 25 [erts-13.2.2] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1]
15:22:35.803 [error] gen_event {lager_file_backend...
New
Hello all!
I am typing this post from my new MacBook Pro with the M1 chip. I’m loving it so far, and will probably use it as my daily dr...
New
To my knowledge, put_in, Map.update etc. all have the one limitation of not automatically creating intermediate keys when needed (for exa...
New
Forgive me if this is obvious, but how does one delete a database record WITHOUT selecting it first? Ecto.Repo — Ecto v3.14.0 has exampl...
New
Hi guys, i’m new in the Elixir world, and i have to say, that i love it!
i’m having some problem to understand anonymous functions with ...
New
I’m not a pro in using Regex and can’t figure out why the following behaviour happens, especially if we take into account the difference ...
New
Elixir plugin for JetBrain’s IntelliJ Platform (including Rubymine)
This is a plugin that adds support for Elixir to JetBrains IntelliJ...
New
Currently suffering from paralysis by [HTTP client] analysis. This is rather unusual in Elixirland as there tends to be consensus on the ...
New
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #advent-of-code
- #elixirconf-us
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #performance








