Posts

Showing posts with the label erlang

rebar3 install plugins failed

rebar3 install plugins failed Env: rebar 3.6.0 on Erlang/OTP 21 Erts 10.0 Ubuntu 16.04 When I try to install the rebar3 pulgins (such as rebar3_hex), it reports: rebar 3.6.0 on Erlang/OTP 21 Erts 10.0 Ubuntu 16.04 ===> Package <<"rebar3_hex">> not found. Fetching registry updates and trying again... ===> Updating package registry... ===> Plugin rebar3_hex not available. It will not be used. ===> Package <<"rebar3_hex">> not found. Fetching registry updates and trying again... ===> Updating package registry... ===> Plugin rebar3_hex not available. It will not be used. There is only one line in my ~/.config/rebar3/rebar.config : {plugins, [rebar3_hex]}. as recommended in https://www.rebar3.org/docs/using-available-plugins#hex-package-management and https://github.com/tsloughter/rebar3_hex. ~/.config/rebar3/rebar.config {plugins, [rebar3_hex]}. I can't get more useful information from google, rebar3 doc and existed questio...

Dialyzer Warnings in erlang, Records construction and improper lists

Dialyzer Warnings in erlang, Records construction and improper lists I am trying to fix the warnings in erlang code found from dialyzer. i came across few errors like record construction and improper lists what causes these errors. can anyone explain it. thank you! can you show dialyzer errors and the code (some lines) that errors come from? – Pouriya Jul 1 at 21:18 1 Answer 1 Proper list : [1|[2]] Improper list : [1|2] ...which could result from defining a function like this: f([H|]) -> H-1; f([H|T]) -> [H - 1 | f(T) ]. instead of: f([H|]) -> [H-1]; f([H|T]) -> [H - 1 | f(T) ]. Record construction error : http://erlang.org/pipermail/erlang-questions/2013-June/074118.html. I do not get that record construction error in erlang 20.2. ...