dev merge dialyzer (aka devlyzer)
Created by: rdimitrovbg
Summarize
- Overall on the changes
- All automatically created files have been removed.
- The missing specification was completed. (introducing changes to the protocol)
- Global and explicitly defined suppress warnings attributes.
- Compiling / Running
NB: Compiling and running project with rebar3 requires additional steps which are not suitable for mad and vice versa.
2.1. Compiling / Running with rebar3
The main issue comes with one of the deps lib - 'jose-erlang'.
During the compile time with rebar3, 'Dependency failure' error is thrown.
$ rebar3 get-deps
...
===> Fetching jose-erlang ({git,
"https://github.com/manifest/jose-erlang.git",
{branch,"master"}})
===> Dependency failure: source for jose-erlang does not contain a recognizable project and can not be built
The Solution that I have found so far is based on this article and it is a native way of extending the standard set of OTP library.
This could be done by exporting system variable ERL_LIBS, pointing to the directorie where these libs are kept.
Solution Steps:
- remove or comment on the jose-erlang library from the dependencies set
- creating a directory that is appropriate to the project
- adjust the accessibility of the system variable
ERL_LIBS - cloning
jose-erlanginside theERL_LIBSpath - perform command
make appin order to build the library - done
Cloning and building jose-erlang lib inside the ERL_LIBS directory will guarantee that we will have access to all its functionality across.
2.2 Compiling / Running with mad
Unfortunately, the solution satisfying Compiling / Running with rebar3 is inappropriate for mad.
@5HT Probably because mad does not pay attention on ERL_LIBS and could not find extra libs.
The current state of the project works well with mad, no change in deps libraries needed.
- Tests Successful