gotthardp / gen_coap

Generic Erlang CoAP Client/Server
Other
106 stars 47 forks source link

Cannot start simple server #8

Closed drasko closed 7 years ago

drasko commented 7 years ago
drasko@Lenin:~/coap/gen_coap$ ./coap-server.sh 
escript: exception error: undefined function sample_server:start/0
  in function  erl_eval:do_apply/6 (erl_eval.erl, line 670)
  in call from escript:eval_exprs/5 (escript.erl, line 871)
  in call from erl_eval:local_func/6 (erl_eval.erl, line 557)
  in call from escript:interpret/4 (escript.erl, line 787)
  in call from escript:start/1 (escript.erl, line 277)
  in call from init:start_it/1 
  in call from init:start_em/1 

Rebar3 places .beam binaries into _build/default/lib/gen_coap/ebin/, and not ./ebin

gotthardp commented 7 years ago

Yes, this is a bug.

drasko commented 7 years ago

I'll send a PR.

drasko commented 7 years ago

@gotthardp https://github.com/gotthardp/gen_coap/pull/9

gotthardp commented 7 years ago

Merged. Thanks!