[erlang-questions] code:get_path() returns badarg

Serge Aleynikov <>
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.

http://www.erlang.org/pipermail/erlang-patches/2008-October/000319.html

Serge

Vlad Dumitrescu wrote:
> Hi!
> 
> 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
> {'EXIT',{badarg,[{code_server,call,2},...
> 
> 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,
> Vlad
> _______________________________________________
> erlang-questions mailing list
> 
> http://www.erlang.org/mailman/listinfo/erlang-questions
> 




More information about the erlang-questions mailing list