You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue is not related to Erlang and I've confirmed it exists in both latest release and the main branch.
Operating system
N/A - it should happen on every ANSI-compatible dev machine with custom .iex.exs
Current behavior
In .iex.exs file located in my home directory I have set eval_error to :light_red. The test is setting it to :red and therefore tries to override it in:
However for some reason .iex.exs is still preferred which ends up in failing test. Therefore if (for test purposes) we set all colors to some rarely used one we may be able to break every test which tests ANSI escape codes response.
When I've noticed that the tests are calling IEx.configure/1 (as same as my .iex.exs file) I was really surprised. I guess that .iex.exs evalution happens somewhere in between and it's worth investigating why tests are not overriding it as similar conflict may exist also in different places.
I'm not even sure how important this issue is as I guess it's good that .iex.exs in typical case is preferred, but also moving away this file just to test Elixir is not handy …
The text was updated successfully, but these errors were encountered:
Uh oh!
There was an error while loading. Please reload this page.
Elixir and Erlang/OTP versions
This issue is not related to
Erlang
and I've confirmed it exists in both latest release and themain
branch.Operating system
N/A - it should happen on every ANSI-compatible dev machine with custom
.iex.exs
Current behavior
In
.iex.exs
file located in my home directory I have seteval_error
to:light_red
. The test is setting it to:red
and therefore tries to override it in:elixir/lib/iex/test/test_helper.exs
Lines 102 to 110 in 51e160e
However for some reason
.iex.exs
is still preferred which ends up in failing test. Therefore if (for test purposes) we set all colors to some rarely used one we may be able to break every test which testsANSI
escape codes response.In my case the mentioned test is located here:
elixir/lib/iex/test/iex/interaction_test.exs
Lines 154 to 161 in 51e160e
Expected behavior
When I've noticed that the tests are calling
IEx.configure/1
(as same as my.iex.exs
file) I was really surprised. I guess that.iex.exs
evalution happens somewhere in between and it's worth investigating why tests are not overriding it as similar conflict may exist also in different places.I'm not even sure how important this issue is as I guess it's good that
.iex.exs
in typical case is preferred, but also moving away this file just to testElixir
is not handy …The text was updated successfully, but these errors were encountered: