[erlang-questions] Dialyzer HOME quirk
Tue Jun 2 17:35:28 CEST 2015
On 06/02/2015 05:25 PM, Viacheslav V. Kovalev wrote:
> Hi folks.
> When working with dialyzer on windows I've noticed some strange (for
> me) behaviour. To find default PLT location dialyzer peeks into the
> HOME environment variable, which is... hm...*not always* defined on
> Erlexec, for example, knows about this fact:
> I believe correct way to locate HOME is to use
> `init:get_argument(home)`. Does anybody know any reason not to do so?
> Why dialyzer use os:getenv("HOME") though?
Because we have never tried Dialyzer on windows (at least when this code
was written), simply because we did not (and still do not) have such a
The reason is as simple as that. Feel free to submit a pull request
that fixes this. I would have done it but I have no way of testing
whether the change works on Windows or not.
More information about the erlang-questions