Elixir

Elixir

Elixir Core Team

This release adds basic support for Erlang/OTP 26. When migrating
to Erlang/OTP 26, keep it mind it changes how maps are stored
internally and they will be printed and traversed in a different
order (note maps never provided a guarantee of their order).
To aid migration, this release adds :sort_maps to inspect
custom options, in case you want to sort them before inspection:

inspect(map, custom_options: [sort_maps: true])

Enhancements

Elixir

  • [Inspect] Add :sort_maps to Inspect.Opts.custom_options

IEx

  • [IEx] Support shell history in Erlang/OTP 26+

Mix

  • [mix compile.elixir] Optimize application tracer

Bug fixes

Elixir

  • [Code] Properly handle blocks with comments in all cases in Code.quoted_to_string_with_comments/2
  • [Kernel] Fix debug_info/4 when returning core_v1
  • [Kernel] Store complete path on quote keep: true to avoid invalid stacktraces
  • [Kernel] Fix column count when tokenizing escaped interpolations
  • [Stream] Fix Stream.zip/1 hanging on empty list

Mix

  • [mix format] Don’t call formatter on directories

Showing Posts 1 to 10

muelthe

muelthe

Awesome, thanks.

Eiji

Eiji

In asdf I can see 1.14.4 for OTP 23-25, but not for 26. Is it a fault on bob builder side? I have tried to manually download https://repo.hex.pm/builds/elixir/v1.14.4-otp-26.zip, but I got an access denied error.

Edit: Also the release on Github does not include version for OTP 26. Didn’t checked, but maybe someone forgot to update build matrix?

josevalim

josevalim

Creator of Elixir

This is intentional, as there is no official 26 release yet. But you can run the compiled for 25 on 26 or compile from source on 26.

13
Post #3
Eiji

Eiji

Makes sense. It’s awesome that even RC is more or less supported.

CharlesO

CharlesO

I Tried 1.14.4 on OTP 26 release RC 2 on Windows 10.

Compilation seems to hang.

josevalim

josevalim

Creator of Elixir

Which project were you compiling and with which command?

CharlesO

CharlesO

One of my own projects that compiled fine on 1.14.2 on OPT 25.3

The command: mix compile – force

Eiji

Eiji

I have tried to compile a new project, generated by phx.new command, but I got:

===> Analyzing applications…
===> Compiling cowlib
===> Compiling src/cow_sse.erl failed
src/cow_sse.erl:56:29: type variable ‘State’ is only used once (is unbound)

Here is a version:

$ elixir --version
Erlang/OTP 26 [RELEASE CANDIDATE 2] [erts-14.0] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] [jit:ns]

Elixir 1.15.0-dev (7e7a1fa) (compiled with Erlang/OTP 26)
josevalim

josevalim

Creator of Elixir

Can you try cloning Cowboy from the git repo and compiling it? Maybe it is something rather specific to Erlang/OTP than Elixir?

Eiji

Eiji

Ok, so here is a result using RC2:

$ make all
 DEP    cowlib (2.12.1)
 DEP    ranch (1.8.0)
make[1]: Entering directory '$HOME/cowboy/deps/cowlib'
 DEPEND cowlib.d
 ERLC   cow_base64url.erl cow_cookie.erl cow_date.erl cow_hpack.erl cow_http.erl cow_http2.erl cow_http2_machine.erl cow_http_hd.erl cow_http_struct_hd.erl cow_http_te.erl cow_iolists.erl cow_link.erl cow_mimetypes.erl cow_multipart.erl cow_qs.erl cow_spdy.erl cow_sse.erl cow_uri.erl cow_uri_template.erl cow_ws.erl
 APP    cowlib
make[1]: Leaving directory '$HOME/cowboy/deps/cowlib'
make[1]: Entering directory '$HOME/cowboy/deps/ranch'
 DEPEND ranch.d
 ERLC   ranch.erl ranch_acceptor.erl ranch_acceptors_sup.erl ranch_app.erl ranch_conns_sup.erl ranch_crc32c.erl ranch_listener_sup.erl ranch_protocol.erl ranch_proxy_header.erl ranch_server.erl ranch_ssl.erl ranch_sup.erl ranch_tcp.erl ranch_transport.erl
 APP    ranch
make[1]: Leaving directory '$HOME/cowboy/deps/ranch'
 DEPEND cowboy.d
 ERLC   cowboy.erl cowboy_app.erl cowboy_bstr.erl cowboy_children.erl cowboy_clear.erl cowboy_clock.erl cowboy_compress_h.erl cowboy_constraints.erl cowboy_handler.erl cowboy_http.erl cowboy_http2.erl cowboy_loop.erl cowboy_metrics_h.erl cowboy_middleware.erl cowboy_req.erl cowboy_rest.erl cowboy_router.erl cowboy_static.erl cowboy_stream.erl cowboy_stream_h.erl cowboy_sub_protocol.erl cowboy_sup.erl cowboy_tls.erl cowboy_tracer_h.erl cowboy_websocket.erl
 APP    cowboy
 GEN    rebar.config

Erlang version:

Erlang/OTP 26 [RELEASE CANDIDATE 2] [erts-14.0] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] [jit:ns]

Eshell V14.0

Where Next? Top

Trending in News Top

Other Trending Topics Top

JesseHerrick
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
New
mudasobwa
I am happy to introduce the very α version of the new programming language compiled to BEAM. Welcome Cure. It has literally three kille...
New
marciok
Hi there! We created Gust: A task orchestrator inspired by Airflow. For those who have never heard about Aiflow, it’s a Python-based wor...
New
mhanberg
Hi everyone! The first release candidate for the Expert language server project is now available! We’ve published a press release detai...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Dmk
Xamal is a deployment tool for Elixir apps that deploys native releases to bare metal servers over SSH. It’s a port of GitHub - basecamp/...
New

Latest on Elixir Forum

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews