Skip to content

Issues running a Clojerl release #83

Closed
@oubiwann

Description

@oubiwann

This is a follow up to the discovery work that @jfacorro did here:

Basically, when I try to run a Clojerl application using the script resulting from rebar3 release (e.g., executing ./_build/default/rel/NAME/bin/NAME console), I get an error like the following:

=INFO REPORT==== 9-Jul-2020::20:45:14.018627 ===
    application: clojerl
    exited: {bad_return,
                {{clojerl_app,start,[normal,[]]},
                 {'EXIT',
                     {#{'__type__' => 'clojerl.Error',
                        message =>
                            <<"NO_SOURCE_FILE:?:?: Could not locate clojure.core.server.beam or clojure/core/server on code path.">>},
                      [{'clojure.core','load-lib',3,
                           [{file,
                                "/Users/oubiwann/lab/clojusc/port-examples/_build/default/lib/clojerl/src/clj/clojure/core.clje"},
                            {line,4588}]},
                       {'clojure.core','-load-libs/1-loop_858/4-0-',5,
                           [{file,
                                "/Users/oubiwann/lab/clojusc/port-examples/_build/default/lib/clojerl/src/clj/clojure/core.clje"},
                            {line,4622}]},
                       {clojerl_app,init,0,
                           [{file,
                                "/Users/oubiwann/lab/clojusc/port-examples/_build/default/lib/clojerl/src/erl/clojerl_app.erl"},
                            {line,42}]},
                       {clojerl_app,start,2,
                           [{file,
                                "/Users/oubiwann/lab/clojusc/port-examples/_build/default/lib/clojerl/src/erl/clojerl_app.erl"},
                            {line,18}]},
                       {application_master,start_it_old,4,
                           [{file,"application_master.erl"},{line,277}]}]}}}}
    type: permanent

As a sanity check, I was able to run this application from the Clojerl REPL just fine:

clje.user=> (application/ensure_all_started :ports)
:ok
clje.user=> (ports.echo/echo "hey, it's a thing")
"hey, it's a thing"

The one difference I can note between the issue above and what Juan was seeing (in the comments at the above links) is that my vm.args does have the -mode interactive line present. I confirmed that it was actually in build/default/rel/ports/releases/0.1.0/vm.arg, too.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions