[erlang-questions] code:get_path() returns badarg
Tue Nov 18 03:09:43 CET 2008
Please check the value of environment variable ERL_LIBS. If it's
defined but empty or contains a non-existing path, you would get this
behavior in versions between R12B and R12B-3.
Vlad Dumitrescu wrote:
> I will look at the code in more detail tomorrow, but maybe someone has
> the answer already...
> I am calling code:get_path() very early in the startup process and
> with R12 it often happens that this call crashes with
> My first inspection leads me to guess that the code server isn't
> started properly and the badarg is because the name code_server isn't
> registered yet.
> I even added a code:module_info() call earlier, to let the code server
> start up properly, but to no avail. I don't know if it's because I
> should wait a little longer or there is another explanation.
> The error doesn't happen all the time (actually, I can't reproduce it
> myself), but I have many reports from different erlide users.
> Could somebody please guide me from here?
> best regards,
> erlang-questions mailing list
More information about the erlang-questions