[erlang-questions] Dialyzer HOME quirk

Viacheslav V. Kovalev kovyl2404@REDACTED
Tue Jun 2 17:25:25 CEST 2015

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
windows: https://github.com/erlang/otp/blob/maint/lib/dialyzer/src/dialyzer_plt.erl#L230

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?

More information about the erlang-questions mailing list