[erlang-bugs] code:lib_dir/1 fails with ERL_LIBS set

Vance Shipley <>
Wed Jan 29 15:27:32 CET 2014

There appears to be a bug where code:lib_dir/1 fails with applications
appearing in an extra lib directory declared with ERL_LIBS.  The following
shows the problem:

$ ERL_LIBS=/Users/vances/foo erl
Erlang R16B03 (erts-5.10.4) [source] [64-bit] [smp:8:8] [async-threads:10] [hipe] [kernel-poll:false]

Eshell V5.10.4  (abort with ^G)
1> application:load(bar).
2> code:which(bar).
3> code:where_is_file("bar.app").
4> code:lib_dir(bar). 


More information about the erlang-bugs mailing list