Hi group,
Just wanted to give heads up on how to compile and run CB projects with Erlang 17 RC2.
"rebar boss c=compile" inside of projects will be blowing up due to this:
erlang:system_info(otp_release) return "17" instead of "R17", at least in 17 RC2.
A quick fix is to change it:
otp_version() ->
OTPVersion = erlang:system_info(otp_release),
{Version, _Rest} = case string:to_integer(string:sub_string(OTPVersion, 1, 1)) of
{First, _} when is_integer(First) -> string:to_integer(OTPVersion);
_ -> string:to_integer(string:sub_string(OTPVersion, 2, 3))
end,
Version.
PS. Several of the 41 dependencies will be not compiling in Erlang 17 due to their rebar.config files containg "error on warn" such as poolboy and riakc, or containing "R15|R16"
-rambocoder