sebastiw / edts

Erlang Development Tool Suite
GNU Lesser General Public License v3.0
354 stars 82 forks source link

initialization crashed with error {compile_error, ...} #207

Open ks opened 9 years ago

ks commented 9 years ago

Hi,

on Arch linux, version 18 (erts 7.1), I'm getting compile_error in edts_dist module (pretty printed):

[x@xmd vicuc(master)]$ /home/x/.emacs.d/elpa/edts-20150830.510/start 
Erlang/OTP 18 [erts-7.1] [source] [64-bit] [smp:8:8] [async-threads:10] [hipe] [kernel-poll:false]

Eshell V7.1  (abort with ^G)
(edts@xmd)1> 17:01:42.977 [debug] Lager installed handler lager_console_backend into lager_event
17:01:43.471 [debug] Lager installed handler lager_backend_throttle into lager_event
17:01:53.703 [error] vicuc@xmd initialization crashed with error:{compile_error,{"/home/x/.emacs.d/elpa/edts-20150830.510/lib/edts/src/edts_code",
                [{"/home/x/.emacs.d/elpa/edts-20150830.510/lib/edts/src/edts_code.erl",
                  [{34,epp,{include,lib,"eunit/include/eunit.hrl"}},
                   {798,epp,{undefined,'_assertEqual',2}},
                   {827,epp,{undefined,'_assert',1}},
                   {849,epp,{undefined,'_assertEqual',2}},
                   {896,epp,{undefined,'_assertEqual',2}},
                   {922,epp,{undefined,'_assertEqual',2}},
                   {936,epp,{undefined,'_assertEqual',2}},
                   {950,epp,{undefined,'_assertEqual',2}},
                   {973,epp,{undefined,'_assertEqual',2}},
                   {995,epp,{undefined,'_assertEqual',2}},
                   {1020,epp,{undefined,'_assertEqual',2}},
                   {1048,epp,{undefined,'_assertEqual',2}},
                   {1061,epp,{undefined,'_assertEqual',2}},
                   {1077,epp,{undefined,'_assertEqual',2}},
                   {1090,epp,{undefined,'_assertEqual',2}},
                   {1093,epp,{undefined,'_assertMatch',2}},
                   {1106,epp,{undefined,'_assertEqual',2}}]}]}}
Stacktrace:
[{edts_dist,remote_compile_module,2,
            [{file,"src/edts_dist.erl"},{line,278}]},
 {edts_dist,remote_load_module,2,
            [{file,"src/edts_dist.erl"},{line,224}]},
 {lists,foreach,2,[{file,"lists.erl"},{line,1337}]},
 {edts_server,do_init_node,7,
              [{file,"src/edts_server.erl"},{line,290}]},
 {edts_server,handle_call,3,
              [{file,"src/edts_server.erl"},{line,168}]},
 {gen_server,try_handle_call,4,
             [{file,"gen_server.erl"},{line,629}]},
 {gen_server,handle_msg,5,
             [{file,"gen_server.erl"},{line,661}]},
 {proc_lib,init_p_do_apply,3,
           [{file,"proc_lib.erl"},{line,240}]}]

This happens after I open emacs buffer with erlang file, followed by "Failed to initialized node vicuc@xmd".

Edts project file is quite normal:

:node-name "vicuc@xmd"
:lib-dirs '("deps" "deps/mochiweb_xpath/deps")
:erlang-cookie "xxx"

Let me know please if there's some workaround.

Thank you, Karol

timclassic commented 8 years ago

@ks The output tells me that the eunit app is not available target node, and this prevents EDTS from building and installing the edts_code module on the target node. I've encountered the same issue in the past.