You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{code:is_loaded(yaws_dynopts)}} returns {code:erlang}{file, []}{code} which is not an absolute filename. yaws_dynopts is loaded using {{code:load_binary/3}}.
The text was updated successfully, but these errors were encountered:
{{code:load_binary/3}} doesn't actually load anything from disk, and the {{Filename}} argument lets you specify which file you want the code server to believe you loaded the module from (for bookkeeping purposes).
Looking at the YAWS source code it passes an empty filename to {{code:load_binary/3}} when generating this module, so {{code:is_loaded/1}} will return an empty filename.
https://github.com/klacke/yaws/blob/80caa2b2a7608638046fdb00180fa79262a8f2a8/src/yaws_dynopts.erl#L180
Original reporter:
sdl.web@gmail.com
Affected version:
OTP-20.2
Component:
kernel
Migrated from: https://bugs.erlang.org/browse/ERL-567
The text was updated successfully, but these errors were encountered: