rambo icon indicating copy to clipboard operation
rambo copied to clipboard

Library using Rambo fails in a .exs script

Open binaryape opened this issue 1 year ago • 1 comments

My library using Rambo is failing when used in an .exs script and run with elixir ./examples/mdui_list.exs - this is different to the issue with escripts in #14 but seems to have a similar cause, access to priv.

I'm using Mix.install in the script to install my library, which in turn installs Rambo.

Is there any way to work around this?

Example error:

sh: /Users/pete/Library/Caches/mix/installs/elixir-1.14.2-erts-13.1.3/ca16c8c442e98299bb3e789b69f4a76b/_build/dev/lib/rambo/priv/rambo: No such file or directory
sh: line 0: exec: /Users/pete/Library/Caches/mix/installs/elixir-1.14.2-erts-13.1.3/ca16c8c442e98299bb3e789b69f4a76b/_build/dev/lib/rambo/priv/rambo: cannot execute: No such file or directory
** (EXIT from #PID<0.95.0>) :epipe

binaryape avatar Mar 02 '23 18:03 binaryape

Update: It's not access to priv - it's that the compiled rambo binary isn't there. If I copy the binary from my main project into the temporary _build directory of the script everything works. I think this is due to #13 and so will be fixed when that is fixed.

binaryape avatar Mar 02 '23 20:03 binaryape