[erlang-bugs] possible bug in package loading

Eric Merritt ericbmerritt@REDACTED
Sat Jun 2 17:23:19 CEST 2012


I realize that packages are not technically supported. However, I ran
across a rather ugly (possible) bug that, as long as packages are in
the language, should probably be resolved.

The bug is this. Lets say you have a bin dir at
/some/directory/structure/ebin and you have packages under this, say
package foo.shell. If you accidentally set your package to
some/directory/structure/ebin/foo the code loader dies saying

=ERROR REPORT==== 2-Jun-2012::10:17:17 ===
beam/beam_load.c(1250): Error loading module shell:
  module name in object code is foo.shell

Technically I can see why this is an issue. However, I suspect it can
be handled better then it currently is.

Eric



More information about the erlang-bugs mailing list