_______________________________________________
erlang-questions mailing list
erlang-q...@erlang.org
http://erlang.org/mailman/listinfo/erlang-questions
This saves a lot of headaches. erlang:get_stacktrace/0 is notable in how
widely used it is but issues with warnings_as_error have always existed
for as long as I've been doing Erlang. Tools should really have a saner
default policy for this. The build shouldn't break for your users just
because a new warning was introduced.
> Danil Zagoskin | z...@gosk.in <mailto:z...@gosk.in>
> _______________________________________________
> erlang-questions mailing list
> erlang-q...@erlang.org <mailto:erlang-q...@erlang.org>
> http://erlang.org/mailman/listinfo/erlang-questions
>
>
>
> _______________________________________________
> erlang-questions mailing list
> erlang-q...@erlang.org
> http://erlang.org/mailman/listinfo/erlang-questions
>
--
Loïc Hoguin
https://ninenines.eu
It's worth noting that you did not have an issue with Cowboy, Ranch and
friends. That's because the default policy in Erlang.mk is to NOT use
warnings_as_errors for dependencies (and as a result this option is not
included in the generated rebar.config).
They have a reason of course: this option is great during development.
Everyone should use it.
Building as a dependency is a different context though and having your
dependencies break every time there's a new OTP version is not the best
user experience. I suppose Rebar3 has a way to have stricter compilation
profiles for use during development, but I haven't seen much use of
that. So it falls down to each dependency's user to fix those issues,
and that's a problem.
It being a default may or may not be a good idea, I don't know. All I do
know is that nobody complained and nobody asked for an option to disable
that behavior so I think it's good enough for now. It's one less problem
to worry about. Rebar has more users and with a different mindset so the
same may not apply.
--
Loïc Hoguin
https://ninenines.eu
I'd be open to having a mechanism to force-remove it, but I'd be annoyed to lose the ability to go add it back though.