Open ricardorp opened 6 years ago
do you have do rebar3 upgrade first?
No, I haven't. The rebar.config file has only one dependency: cowboy and it includes de lastest version already so, afaik, running $ rebar3 upgrade
would have no effect.
At which point should I've run rebar3 upgrade?
Thnx!
Is this problem had a solution? I have got the same issue when trying to run application with cowboy that way:
REBAR3_COMPILED_EBIN_DIRS="jsx/ebin ranch/ebin cowlib/ebin cowboy/ebin nerlnetApp/ebin"
cd $NERLNET_APP_BUILD_DIR
erl -pa $REBAR3_COMPILED_EBIN_DIRS -eval "nerlnetApp_app:start(a,b)." -s init stop
However Running the application using rebar shell from the application directory has no issue.
Issue:
{"init terminating in do_boot",{noproc,{gen_server,call,[ranch_sup,{start_child,{{ranch_listener_sup,nerlnetInitiator},{ranch_listener_sup,start_link,[nerlnetInitiator,ranch_tcp,#{connection_type=>supervisor,socket_opts=>[{port,8484}]},cowboy_clear,#{connection_type=>supervisor,env=>#{dispatch=>[{'_',[],[{[<<"updateJsonPath">>],[],jsonHandler,[<0.9.0>]},{[<<"isNerlnetDevice">>],[],iotHandler,[<0.9.0>]}]}]}}]},permanent,infinity,supervisor,[ranch_listener_sup]}},infinity]}}}
First of all, thanks for your great work developing this plugin for IntelliJ. It really rocks! I'm afraid my problem is a quite recurring one: how to debug a cowboy app with intellij-erlang plugin. As far as I know, I've read all the related issues here and questions at stackoverflow, but no luck yet and I can't find what I'm doing wrong.
Using:
I've followed these steps to get a really simple example:
Ok, so I configured a new Run/Debug:
No other
.beam
processes are listed by ps andepmd
is running. It seems as if ranch application could not be started...I've uploaded all files to Github (https://github.com/ricardorp/simple_web) so you can check both code and project configuration.