Closed voteleobrown closed 5 years ago
Hi @voteleobrown! Note we don't support Erlang/OTP 22 as it is still in development. This is most likely an Erlang/OTP 22 bug, which should be isolated and reported upstream. Thanks!
Btw, we would love if someone could look into this and try to isolate it. My suggestion is to using something like asdf, kerl, kiex to get latest Erlang and then run make clean_elixir compile
multiple times. You can see the Inspect.Algebra module is failing, so I would try to make it smaller and smaller, removing docs, code, etc, until we have a minimum case.
The minimal erlang example I was able to come up with is:
-module('Elixir.Test').
-export([container_each/6]).
container_each([_left@1|_right@1],
_limit@1,
_opts@1,
_fun@1,
_acc@1,
_simple@1) ->
_limit@2 = id(_limit@1),
_left@2 = _fun@1(_left@1, _opts@1#{limit := _limit@2}),
_right@2 = _fun@1(_right@1, _opts@1#{limit := _limit@2}),
_simple@2 =
case
case _simple@1 of
false ->
false;
true ->
id(_left@2);
__@1 ->
error({badbool,'and',__@1})
end
of
false ->
false;
true ->
id(_right@2);
__@2 ->
error({badbool,'and',__@2})
end,
_doc@1 = join(_left@2, _right@2, _simple@2, <<"...">>),
{lists:reverse([_doc@1|_acc@1]),_simple@2}.
id(_x@1) ->
_x@1.
join(_x@1, _, _, _) ->
_x@1.
I've reported it today morning.
Beautiful. :heart: :green_heart: :blue_heart: :yellow_heart: :purple_heart:
Environment
Elixir & Erlang/OTP versions (elixir --version):
Erlang/OTP 22 [DEVELOPMENT] [erts-10.1.1] [source-c61ce5d] [64-bit] [smp:2:2] [ds:2:2:10] [async-threads:1] [hipe]
Operating system:
cat /etc/os-release
Current behavior
Resulting Error Message
Expected behavior
Successful compile.