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
Note that the code works fine when run interactively via IEx.
Digging in a little the error seems to arise from:
def find_rambo do
Path.join(:code.priv_dir(:rambo), @filename)
end
There's a whole load of stuff going on in compile_rambo.ex that I don't understand, but it looks like it builds the shim binary Rambo uses for handling input termination. Based on what I read I think the problem may be that the :priv folder isn't included in escript builds.
Anyway, something about this isn't seeming very happy in the escript context.
Activity
mmower commentedon Oct 7, 2021
Further to the above, I have found in the documentation:
https://hexdocs.pm/mix/master/Mix.Tasks.Escript.Build.html
Unfortunately, Rambo's use of the priv folder means it can't be used with any application intended to be compiled to an escript.