First, thanks for an excellent maven plugin for erlang. Setting up a proper development environment in Erlang is quite a tedious and esoteric task, which your plugin manages with ease :)
When trying to run the package goal, erlang:dialyzer stops with a missing ~/.dialyzer_plt file.
Shouldn't the maven plugin properly handle the file by itself?
How can I workaround this in the meantime?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Shouldn't the maven plugin properly handle the file by itself?
That's a good question. The .plt file is something like a database file the dialyzer tool needs. The .plt file is usually created for a few standard erlang/OTP applications like kernel, stdlib, mnesia, … We could add a projects analysis to the plt file every time dialyzer succeeds to analyze a project. Unfortunately this wouldn't solve the problem you have right now.
How can I workaround this in the meantime?
You need to create a .plt file (at least) once you installed a new erlang/OTP version (and it takes quite a long time even if you just run it on the few recommended standard applications). Try to run dialyzer standalone on some erlang sources/beams and dialyzer will usually prompt the command line you need to create a minimal dialyzer.plt.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
First, thanks for an excellent maven plugin for erlang. Setting up a proper development environment in Erlang is quite a tedious and esoteric task, which your plugin manages with ease :)
When trying to run the package goal, erlang:dialyzer stops with a missing ~/.dialyzer_plt file.
Shouldn't the maven plugin properly handle the file by itself?
How can I workaround this in the meantime?
Hi,
nice to hear that find the plug-in useful :)
That's a good question. The .plt file is something like a database file the dialyzer tool needs. The .plt file is usually created for a few standard erlang/OTP applications like kernel, stdlib, mnesia, … We could add a projects analysis to the plt file every time dialyzer succeeds to analyze a project. Unfortunately this wouldn't solve the problem you have right now.
You need to create a .plt file (at least) once you installed a new erlang/OTP version (and it takes quite a long time even if you just run it on the few recommended standard applications). Try to run dialyzer standalone on some erlang sources/beams and dialyzer will usually prompt the command line you need to create a minimal dialyzer.plt.
…just found it in the http://http://www.erlang.org/doc/apps/dialyzer/dialyzer_chapter.html: