AdRoll / rebar3_hank

The Erlang Dead Code Cleaner
MIT License
68 stars 9 forks source link

Terminates unexpectedly #149

Closed AK67 closed 3 years ago

AK67 commented 3 years ago
===> Newly added dep certifi is locked at a lower level. If you really want to unlock it, use 'rebar3 upgrade certifi'
===> Looking for code to kill with fire...
===> exit analyzing files: badrpc
Stack: [{rpc,check,2,[{file,"rpc.erl"},{line,1238}]},
        {timer,tc,1,[{file,"timer.erl"},{line,166}]},
        {hank,analyze,5,

        Report :

        Rebar3 report
 version 3.14.2+build.5009.ref6a2c775c
 generated at 2021-07-21T05:10:00+00:00
Task:
Entered as:

-----------------
Operating System: x86_64-apple-darwin18.7.0
ERTS: Erlang/OTP 23 [erts-11.1.8] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:1] [hipe] [dtrace]
Root Directory: /usr/local/Cellar/erlang/23.2.7/lib/erlang
Library directory: /usr/local/Cellar/erlang/23.2.7/lib/erlang/lib
-----------------
Loaded Applications:
bbmustache: 1.10.0
certifi: 2.6.1
cf: 0.3.1
common_test: 1.19.1
compiler: 7.6.6
crypto: 4.8.3
cth_readable: 1.5.1
dialyzer: 4.3
edoc: 0.12
erlware_commons: 1.5.0
eunit: 2.6
eunit_formatters: 0.5.0
getopt: 1.0.1
hipe: 4.0.1
inets: 7.3.2
kernel: 7.2.1
providers: 1.8.1
public_key: 1.9.2
relx: 4.4.0
sasl: 4.0.1
snmp: 5.7.3
ssl_verify_fun: 1.1.6
stdlib: 3.14
syntax_tools: 2.4
tools: 3.4.3

-----------------
Escript path: /Users/anubhav.k/Work/grey_orange/butler/butler_server/rebar3
Providers:
  app_discovery as clean clean clean cmd compile compile compile compile compile compile cover ct cut deps dialyzer do docs edoc escriptize eunit eunit eunit_tear generate get-deps hank help install install_deps key kiwf list lock medoc new owner path pkgs publish release relup repo report repos retire revert search shell state tar tree unlock update upgrade upgrade upgrade user version xref
elbrujohalcon commented 3 years ago

Hi, @AK67 👋🏻 If you don't mind, would you tell us what commands have you tried to run, on what folder/files/repo, and what was the output it produced exactly? Thanks

AK67 commented 3 years ago

@elbrujohalcon Hi, Really appreciate your quick response.

Below is the command i run

rebar3 hank
,
===> Looking for code to kill with fire...
===> exit analyzing files: badrpc
Stack: [{rpc,check,2,[{file,"rpc.erl"},{line,1238}]},
        {timer,tc,1,[{file,"timer.erl"},{line,166}]},
        {hank,analyze,5,
              [{file,"/Users/anubhav.k/Work/grey_orange/butler/butler_server/_build/default/plugins/rebar3_hank/src/hank.erl"},
               {line,30}]},
        {rebar3_hank_prv,do,1,
                         [{file,"/Users/anubhav.k/Work/grey_orange/butler/butler_server/_build/default/plugins/rebar3_hank/src/rebar3_hank_prv.erl"},
                          {line,55}]},
        {rebar_core,do,2,
                    [{file,"/home/srijan/workspace/greyorange_rebar3/src/rebar_core.erl"},
                     {line,155}]},
        {rebar3,run_aux,2,
                [{file,"/home/srijan/workspace/greyorange_rebar3/src/rebar3.erl"},
                 {line,182}]},
        {rebar3,main,1,
                [{file,"/home/srijan/workspace/greyorange_rebar3/src/rebar3.erl"},
                 {line,66}]},
        {escript,run,2,[{file,"escript.erl"},{line,758}]}]
===> Uncaught error in rebar_core. Run with DIAGNOSTIC=1 to see stacktrace or consult rebar3.crashdump
elbrujohalcon commented 3 years ago

OK, @AK67 … Let's try this…

  1. Add this to your rebar.config:
    {hank, [{parsing_style, sequential}]}.
  2. Then run…
    DIAGNOSTIC=1 rebar3 hank
  3. And paste the output here.
AK67 commented 3 years ago
 23.2.7 satisfies the requirement for minimum OTP version 23.1
===> Setting paths to [deps]
===> Compile (apps)
===> Setting paths to [plugins]
===> Setting paths to [deps]
===> Setting paths to [plugins]
===> Setting paths to [plugins]
===> 23.2.7 satisfies the requirement for minimum OTP version 21
===> Setting paths to [deps]
===> Compile (apps)
===> Setting paths to [plugins]
===> Setting paths to [deps]
===> Setting paths to [plugins]
===> Setting paths to [plugins]
===> Evaluating config script "/Users/anubhav.k/Work/grey_orange/butler/butler_server/_build/default/plugins/rebar3_erlydtl_plugin/rebar.config.script"
===> Evaluating config script "/Users/anubhav.k/Work/grey_orange/butler/butler_server/_build/default/plugins/erlydtl/rebar.config.script"
===> Setting paths to [deps]
===> Compile (apps)
===> Setting paths to [plugins]
===> Setting paths to [deps]
===> Setting paths to [plugins]
===> Setting paths to [plugins]
===> Setting paths to [deps]
===> Compile (apps)
===> Setting paths to [plugins]
===> Setting paths to [deps]
===> Setting paths to [plugins]
===> Setting paths to [plugins]
===> Setting paths to [deps]
===> Compile (apps)
===> Setting paths to [plugins]
===> Setting paths to [deps]
===> Setting paths to [plugins]
===> Setting paths to [plugins]
===> Setting paths to [deps]
===> Compile (apps)
===> Setting paths to [plugins]
===> Setting paths to [deps]
===> Setting paths to [plugins]
===> Setting paths to [plugins]
===> 23.2.7 satisfies the requirement for minimum OTP version 18
===> Evaluating config script "/Users/anubhav.k/Work/grey_orange/butler/butler_server/_build/default/plugins/hex_core/rebar.config.script"
===> Setting paths to [deps]
===> Compile (apps)
===> Setting paths to [plugins]
===> Setting paths to [deps]
===> Setting paths to [plugins]
===> Setting paths to [plugins]
===> Setting paths to [deps]
===> Compile (apps)
===> Setting paths to [plugins]
===> Setting paths to [deps]
===> Setting paths to [plugins]
===> Setting paths to [plugins]
===> 23.2.7 satisfies the requirement for minimum OTP version 19.3
===> Evaluating config script "/Users/anubhav.k/Work/grey_orange/butler/butler_server/_build/default/plugins/gpb/rebar.config.script"
===> Setting paths to [deps]
===> Compile (apps)
===> Setting paths to [plugins]
===> Setting paths to [deps]
===> Setting paths to [plugins]
===> Setting paths to [plugins]
===> Setting paths to [deps]
===> Compile (apps)
===> Setting paths to [plugins]
===> Setting paths to [deps]
===> Setting paths to [plugins]
===> Setting paths to [plugins]
===> Expanded command sequence to be run: [app_discovery,hank]
===> Running provider: app_discovery
===> Found top-level apps: [butler_base,butler_shared,fos,ims,mhs,mnesia_backup_viewer,pf,rlayout,butler_server]
    using config: [{src_dirs,["src"]},{lib_dirs,["apps/*","lib/*","."]}]
===> Evaluating config script "/Users/anubhav.k/Work/grey_orange/butler/butler_server/_build/default/lib/boss_db/rebar.config.script"
===> Evaluating config script "/Users/anubhav.k/Work/grey_orange/butler/butler_server/_build/default/lib/brod/rebar.config.script"
===> Evaluating config script "/Users/anubhav.k/Work/grey_orange/butler/butler_server/_build/default/lib/erlastic_search/rebar.config.script"
===> Evaluating config script "/Users/anubhav.k/Work/grey_orange/butler/butler_server/_build/default/lib/erlware_commons/rebar.config.script"
===> Evaluating config script "/Users/anubhav.k/Work/grey_orange/butler/butler_server/_build/default/lib/erlydtl/rebar.config.script"
===> Evaluating config script "/Users/anubhav.k/Work/grey_orange/butler/butler_server/_build/default/lib/gproc/rebar.config.script"
===> Evaluating config script "/Users/anubhav.k/Work/grey_orange/butler/butler_server/_build/default/lib/jiffy/rebar.config.script"
===> Evaluating config script "/Users/anubhav.k/Work/grey_orange/butler/butler_server/_build/default/lib/jsx/rebar.config.script"
===> Evaluating config script "/Users/anubhav.k/Work/grey_orange/butler/butler_server/_build/default/lib/lager/rebar.config.script"
===> Evaluating config script "/Users/anubhav.k/Work/grey_orange/butler/butler_server/_build/default/lib/prometheus/rebar.config.script"
===> Evaluating config script "/Users/anubhav.k/Work/grey_orange/butler/butler_server/_build/default/lib/sync/rebar.config.script"
===> 23.2.7 satisfies the requirement for minimum OTP version 23.1
===> 23.2.7 satisfies the requirement for minimum OTP version 23.1
===> 23.2.7 satisfies the requirement for minimum OTP version 23.1
===> 23.2.7 satisfies the requirement for minimum OTP version 23.1
===> 23.2.7 satisfies the requirement for minimum OTP version 23.1
===> 23.2.7 satisfies the requirement for minimum OTP version 23.1
===> 23.2.7 satisfies the requirement for minimum OTP version 23.1
===> 23.2.7 satisfies the requirement for minimum OTP version 23.1
===> 23.2.7 satisfies the requirement for minimum OTP version 23.1
===> Evaluating config script "/Users/anubhav.k/Work/grey_orange/butler/butler_server/_build/default/plugins/rebar3_erlydtl_plugin/rebar.config.script"
===> Evaluating config script "/Users/anubhav.k/Work/grey_orange/butler/butler_server/_build/default/plugins/erlydtl/rebar.config.script"
===> Setting paths to [deps]
===> Compile (apps)
===> Setting paths to [plugins]
===> Setting paths to [deps]
===> Setting paths to [plugins]
===> Setting paths to [plugins]
===> Not adding provider erlydtl compile from module rebar3_erlydtl_plugin because it already exists from module rebar3_erlydtl_plugin
===> Setting paths to [deps]
===> Compile (apps)
===> Setting paths to [plugins]
===> Setting paths to [deps]
===> Setting paths to [plugins]
===> Setting paths to [plugins]
===> Not adding provider boss_db compile from module rebar3_boss_db_prv because it already exists from module rebar3_boss_db_prv
===> Setting paths to [deps]
===> Compile (apps)
===> Setting paths to [plugins]
===> Setting paths to [deps]
===> Setting paths to [plugins]
===> Setting paths to [plugins]
===> Not adding provider butler_eunit eunit from module butler_eunit_prv because it already exists from module butler_eunit_prv
===> Not adding provider butler_eunit eunit_tear from module butler_eunit_tear_prv because it already exists from module butler_eunit_tear_prv
===> Setting paths to [deps]
===> Compile (apps)
===> Setting paths to [plugins]
===> Setting paths to [deps]
===> Setting paths to [plugins]
===> Setting paths to [plugins]
===> Not adding provider default medoc from module medoc because it already exists from module medoc
===> Setting paths to [deps]
===> Compile (apps)
===> Setting paths to [plugins]
===> Setting paths to [deps]
===> Setting paths to [plugins]
===> Setting paths to [plugins]
===> Not adding provider default cmd from module rebar_cmd_prv because it already exists from module rebar_cmd_prv
===> 23.2.7 satisfies the requirement for minimum OTP version 19.3
===> Evaluating config script "/Users/anubhav.k/Work/grey_orange/butler/butler_server/_build/default/plugins/gpb/rebar.config.script"
===> Setting paths to [deps]
===> Compile (apps)
===> Setting paths to [plugins]
===> Setting paths to [deps]
===> Setting paths to [plugins]
===> Setting paths to [plugins]
===> Not adding provider protobuf compile from module rebar3_gpb_prv_compile because it already exists from module rebar3_gpb_prv_compile
===> Not adding provider protobuf clean from module rebar3_gpb_prv_clean because it already exists from module rebar3_gpb_prv_clean
===> Setting paths to [deps]
===> Compile (apps)
===> Setting paths to [plugins]
===> Setting paths to [deps]
===> Setting paths to [plugins]
===> Setting paths to [plugins]
===> Not adding provider pc compile from module pc_prv_compile because it already exists from module pc_prv_compile
===> Not adding provider pc clean from module pc_prv_clean because it already exists from module pc_prv_clean
===> Running provider: hank
===> Looking for code to kill with fire...
===> Hank rules: [single_use_hrl_attrs,single_use_hrls,
                         unnecessary_function_arguments,unused_callbacks,
                         unused_configuration_options,unused_hrls,
                         unused_macros,unused_record_fields]
===> Hank Context: #{app_dirs =>
                                #{butler_base =>
                                      "/Users/anubhav.k/Work/grey_orange/butler/butler_server/apps/butler_base",
                                  butler_server =>
                                      "/Users/anubhav.k/Work/grey_orange/butler/butler_server",
                                  butler_shared =>
                                      "/Users/anubhav.k/Work/grey_orange/butler/butler_server/apps/butler_shared",
                                  fos =>
                                      "/Users/anubhav.k/Work/grey_orange/butler/butler_server/apps/fos",
                                  ims =>
                                      "/Users/anubhav.k/Work/grey_orange/butler/butler_server/apps/ims",
                                  mhs =>
                                      "/Users/anubhav.k/Work/grey_orange/butler/butler_server/apps/mhs",
                                  mnesia_backup_viewer =>
                                      "/Users/anubhav.k/Work/grey_orange/butler/butler_server/apps/mnesia_backup_viewer",
                                  pf =>
                                      "/Users/anubhav.k/Work/grey_orange/butler/butler_server/apps/pf",
                                  rlayout =>
                                      "/Users/anubhav.k/Work/grey_orange/butler/butler_server/apps/rlayout"},
                            project_apps =>
                                [butler_server,mnesia_backup_viewer,fos,ims,
                                 mhs,butler_shared,rlayout,butler_base,pf]}
===> Hank will use 3639 files for analysis: [".erlang.mk/rebar/include/rebar.hrl",
                                                    ".erlang.mk/rebar/inttest/app_src/app_src.erl",
                                                    ".erlang.mk/rebar/inttest/app_src/app_src_rt.erl",
                                                    ".erlang.mk/rebar/inttest/app_src_script/app_src_script.erl",
                                                    ".erlang.mk/rebar/inttest/app_src_script/app_src_script_rt.erl",
                                                    ".erlang.mk/rebar/inttest/app_src_script_2/app_src_script_2.erl",
                                                    ".erlang.mk/rebar/inttest/app_src_script_2/app_src_script_2_rt.erl",
                                                    ".erlang.mk/rebar/inttest/appup_src/appup_src_rt.erl",
                                                    ".erlang.mk/rebar/inttest/appup_src/src/app.app.src",
                                                    ".erlang.mk/rebar/inttest/appup_src/src/appup_src.erl",
                                                    ".erlang.mk/rebar/inttest/appup_src_2/appup_src_2_rt.erl",
                                                    ".erlang.mk/rebar/inttest/appup_src_2/appup_src_rt_2.erl",
                                                    ".erlang.mk/rebar/inttest/appup_src_2/src/app.app.src",
                                                    ".erlang.mk/rebar/inttest/appup_src_2/src/appup_src.erl",
                                                    ".erlang.mk/rebar/inttest/appup_src_script/appup_src_script_rt.erl",
                                                    ".erlang.mk/rebar/inttest/appup_src_script/src/app.app.src",
                                                    ".erlang.mk/rebar/inttest/appup_src_script/src/appup_src.erl",
                                                    ".erlang.mk/rebar/inttest/bug_5_rt.erl",
                                                    ".erlang.mk/rebar/inttest/code_path_no_recurse/code_path_no_recurse_rt.erl",
                                                    ".erlang.mk/rebar/inttest/code_path_no_recurse/deps/bazdep/src/bazdep.app.src",
                                                    ".erlang.mk/rebar/inttest/code_path_no_recurse/deps/bazdep/src/bazdep.erl",
                                                    ".erlang.mk/rebar/inttest/code_path_no_recurse/deps/bazdep/test/bazdep_tests.erl",
                                                    ".erlang.mk/rebar/inttest/code_path_no_recurse/deps/foodep/rebar.config",
                                                    ".erlang.mk/rebar/inttest/code_path_no_recurse/deps/foodep/src/foodep.app.src",
                                                    ".erlang.mk/rebar/inttest/code_path_no_recurse/deps/foodep/src/foodep.erl",
                                                    ".erlang.mk/rebar/inttest/code_path_no_recurse/deps/foodep/test/foodep_tests.erl",
                                                    ".erlang.mk/rebar/inttest/code_path_no_recurse/deps/unuseddep/src/unuseddep.app.src",
                                                    ".erlang.mk/rebar/inttest/code_path_no_recurse/deps/unuseddep/src/unuseddep.erl",
                                                    ".erlang.mk/rebar/inttest/code_path_no_recurse/rebar.config",
                                                    ".erlang.mk/rebar/inttest/code_path_no_recurse/src/codepath.app.src",
                                                    ".erlang.mk/rebar/inttest/code_path_no_recurse/src/codepath.erl",
                                                    ".erlang.mk/rebar/inttest/code_path_no_recurse/test/codepath_tests.erl",
                                                    ".erlang.mk/rebar/inttest/cover/cover_rt.erl",
                                                    ".erlang.mk/rebar/inttest/cover/rebar-cover_export_json.config",
                                                    ".erlang.mk/rebar/inttest/cover/src/foo.erl",
                                                    ".erlang.mk/rebar/inttest/cross1/cross1_rt.erl",
                                                    ".erlang.mk/rebar/inttest/ct1/app.config",
                                                    ".erlang.mk/rebar/inttest/ct1/ct1_rt.erl",
                                                    ".erlang.mk/rebar/inttest/ct1/rebar.config",
                                                    ".erlang.mk/rebar/inttest/ct1/test_SUITE.erl",
                                                    ".erlang.mk/rebar/inttest/ct2/ct2_rt.erl",
                                                    ".erlang.mk/rebar/inttest/ct2/foo_SUITE.erl",
                                                    ".erlang.mk/rebar/inttest/ct3/app.config",
                                                    ".erlang.mk/rebar/inttest/ct3/ct3_rt.erl",
                                                    ".erlang.mk/rebar/inttest/ct3/rebar.config",
                                                    ".erlang.mk/rebar/inttest/ct3/test_SUITE.erl",
                                                    ".erlang.mk/rebar/inttest/ct4/ct4_rt.erl",
                                                    ".erlang.mk/rebar/inttest/ct4/foo_SUITE.erl",
                                                    ".erlang.mk/rebar/inttest/ct4/rebar.config",
                                                    ".erlang.mk/rebar/inttest/ct_cover/app.config",
                                                    ".erlang.mk/rebar/inttest/ct_cover/ct_cover_rt.erl",
                                                    ".erlang.mk/rebar/inttest/ct_cover/mock/dummy/app.config",
                                                    ".erlang.mk/rebar/inttest/ct_cover/mock/dummy/itest/test_SUITE.erl",
                                                    ".erlang.mk/rebar/inttest/ct_cover/mock/dummy/rebar.config",
                                                    ".erlang.mk/rebar/inttest/ct_cover/rebar.config",
                                                    ".erlang.mk/rebar/inttest/ct_cover/test_SUITE.erl",
                                                    ".erlang.mk/rebar/inttest/ct_make_fails/app.config",
                                                    ".erlang.mk/rebar/inttest/ct_make_fails/ct_make_fails_rt.erl",
                                                    ".erlang.mk/rebar/inttest/ct_make_fails/rebar.config",
                                                    ".erlang.mk/rebar/inttest/ct_make_fails/test_SUITE.erl",
                                                    ".erlang.mk/rebar/inttest/ct_test_fails/app.config",
                                                    ".erlang.mk/rebar/inttest/ct_test_fails/ct_test_fails_rt.erl",
                                                    ".erlang.mk/rebar/inttest/ct_test_fails/rebar.config",
                                                    ".erlang.mk/rebar/inttest/ct_test_fails/test2_SUITE.erl",
                                                    ".erlang.mk/rebar/inttest/ct_test_fails/test_SUITE.erl",
                                                    ".erlang.mk/rebar/inttest/depplugins/base_dir_cwd_plugin.erl",
                                                    ".erlang.mk/rebar/inttest/depplugins/dep_cwd_plugin.erl",
                                                    ".erlang.mk/rebar/inttest/depplugins/depplugins_rt.erl",
                                                    ".erlang.mk/rebar/inttest/depplugins/rebar.config",
                                                    ".erlang.mk/rebar/inttest/depplugins/rebar_dependsonplugin.config",
                                                    ".erlang.mk/rebar/inttest/depplugins/rebar_testplugin.config",
                                                    ".erlang.mk/rebar/inttest/depplugins/testplugin_mod.erl",
                                                    ".erlang.mk/rebar/inttest/erlc/erlc_rt.erl",
                                                    ".erlang.mk/rebar/inttest/erlc/extra-include/foo_extra.hrl",
                                                    ".erlang.mk/rebar/inttest/erlc/extra-src/after_first_erl.erl",
                                                    ".erlang.mk/rebar/inttest/erlc/extra-src/foo_sup.erl",
                                                    ".erlang.mk/rebar/inttest/erlc/foobar.erl",
                                                    ".erlang.mk/rebar/inttest/erlc/include/foo_core.hrl",
                                                    ".erlang.mk/rebar/inttest/erlc/rebar-no_debug_info.config",
                                                    ".erlang.mk/rebar/inttest/erlc/rebar.config",
                                                    ".erlang.mk/rebar/inttest/erlc/src/behaviour/foo_worker.erl",
                                                    ".erlang.mk/rebar/inttest/erlc/src/first_erl.erl",
                                                    ".erlang.mk/rebar/inttest/erlc/src/foo.erl",
                                                    ".erlang.mk/rebar/inttest/erlc/src/foo_app.erl",
                                                    ".erlang.mk/rebar/inttest/erlc/src/foo_test_worker.erl",
                                                    ".erlang.mk/rebar/inttest/erlc_dep_graph/erlc_dep_graph_rt.erl",
                                                    ".erlang.mk/rebar/inttest/erlc_dep_graph/extra_include/extra.hrl",
                                                    ".erlang.mk/rebar/inttest/erlc_dep_graph/include/lambda.hrl",
                                                    ".erlang.mk/rebar/inttest/erlc_dep_graph/rebar.config",
                                                    ".erlang.mk/rebar/inttest/erlc_dep_graph/src/foo.app.src",
                                                    ".erlang.mk/rebar/inttest/erlc_dep_graph/src/java.erl",
                                                    ".erlang.mk/rebar/inttest/erlc_dep_graph/src/lisp.erl",
                                                    ".erlang.mk/rebar/inttest/erlc_dep_graph/src/pascal.erl",
                                                    ".erlang.mk/rebar/inttest/erlc_dep_graph/src/perl.erl",
                                                    ".erlang.mk/rebar/inttest/eunit/eunit_rt.erl",
                                                    ".erlang.mk/rebar/inttest/eunit/eunit_src/bar.erl",
                                                    ".erlang.mk/rebar/inttest/eunit/rebar-eunit_compile_opts.config",
                                                    ".erlang.mk/rebar/inttest/eunit/src/foo.erl",
                                                    ".erlang.mk/rebar/inttest/eunit_surefire/eunit_src/bar.erl",
                                                    ".erlang.mk/rebar/inttest/eunit_surefire/eunit_surefire_rt.erl",
                                                    ".erlang.mk/rebar/inttest/eunit_surefire/rebar.config",
                                                    ".erlang.mk/rebar/inttest/eunit_surefire/src/foo.erl",
                                                    ".erlang.mk/rebar/inttest/inttest_utils.erl",
                                                    ".erlang.mk/rebar/inttest/logging/logging_rt.erl",
                                                    ".erlang.mk/rebar/inttest/neotoma1/mock/neotoma/priv/peg_includes.hrl",
                                                    ".erlang.mk/rebar/inttest/neotoma1/mock/neotoma/src/neotoma.app.src",
                                                    ".erlang.mk/rebar/inttest/neotoma1/mock/neotoma/src/neotoma.erl",
                                                    ".erlang.mk/rebar/inttest/neotoma1/mock/neotoma/src/neotoma_parse.erl",
                                                    ".erlang.mk/rebar/inttest/neotoma1/neotoma_src_rt.erl",
                                                    ".erlang.mk/rebar/inttest/neotoma1/rebar.config",
                                                    ".erlang.mk/rebar/inttest/neotoma1/src/neotoma1.app.src",
                                                    ".erlang.mk/rebar/inttest/port/port_rt.erl",
                                                    ".erlang.mk/rebar/inttest/port/rebar.config",
                                                    ".erlang.mk/rebar/inttest/port2/port2_rt.erl",
                                                    ".erlang.mk/rebar/inttest/port2/rebar.config",
                                                    ".erlang.mk/rebar/inttest/profile/profile_rt.erl",
                                                    ".erlang.mk/rebar/inttest/proto_gpb/mock/gpb/src/gpb.app.src",
                                                    ".erlang.mk/rebar/inttest/proto_gpb/mock/gpb/src/gpb.erl",
                                                    ".erlang.mk/rebar/inttest/proto_gpb/mock/gpb/src/gpb_compile.erl",
                                                    ".erlang.mk/rebar/inttest/proto_gpb/proto_gpb_rt.erl",
                                                    ".erlang.mk/rebar/inttest/proto_gpb/rebar.bad.config",
                                                    ".erlang.mk/rebar/inttest/proto_gpb/rebar.config",
                                                    ".erlang.mk/rebar/inttest/proto_gpb/rebar2.config",
                                                    ".erlang.mk/rebar/inttest/proto_gpb/src/foo.erl",
                                                    ".erlang.mk/rebar/inttest/proto_gpb/src/foo_app.erl",
                                                    ".erlang.mk/rebar/inttest/proto_gpb/src/foo_sup.erl",
                                                    ".erlang.mk/rebar/inttest/proto_protobuffs/mock/protobuffs/src/protobuffs.app.src",
                                                    ".erlang.mk/rebar/inttest/proto_protobuffs/mock/protobuffs/src/protobuffs.erl",
                                                    ".erlang.mk/rebar/inttest/proto_protobuffs/mock/protobuffs/src/protobuffs_compile.erl",
                                                    ".erlang.mk/rebar/inttest/proto_protobuffs/proto_protobuffs_rt.erl",
                                                    ".erlang.mk/rebar/inttest/proto_protobuffs/rebar.config",
                                                    ".erlang.mk/rebar/inttest/proto_protobuffs/src/foo.erl",
                                                    ".erlang.mk/rebar/inttest/proto_protobuffs/src/foo_app.erl",
                                                    ".erlang.mk/rebar/inttest/proto_protobuffs/src/foo_sup.erl",
                                                    ".erlang.mk/rebar/inttest/rebar3_deps1/a.erl",
                                                    ".erlang.mk/rebar/inttest/rebar3_deps1/a.rebar.config",
                                                    ".erlang.mk/rebar/inttest/rebar3_deps1/b.hrl",
                                                    ".erlang.mk/rebar/inttest/rebar3_deps1/rebar3_deps1_rt.erl",
                                                    ".erlang.mk/rebar/inttest/require_vsn/rebar.config",
                                                    ".erlang.mk/rebar/inttest/require_vsn/require_vsn_rt.erl",
                                                    ".erlang.mk/rebar/inttest/rgen1/reltool.config",
                                                    ".erlang.mk/rebar/inttest/rgen1/retest.config",
                                                    ".erlang.mk/rebar/inttest/rgen1/rgen1_rt.erl",
                                                    ".erlang.mk/rebar/inttest/rgen1/test.config",
                                                    ".erlang.mk/rebar/inttest/rgen1/vars.config",
                                                    ".erlang.mk/rebar/inttest/t_custom_config/custom.config",
                                                    ".erlang.mk/rebar/inttest/t_custom_config/custom_config.erl",
                                                    ".erlang.mk/rebar/inttest/t_custom_config/t_custom_config_rt.erl",
                                                    ".erlang.mk/rebar/inttest/tdeps1/a.erl",
                                                    ".erlang.mk/rebar/inttest/tdeps1/a.rebar.config",
                                                    ".erlang.mk/rebar/inttest/tdeps1/b.hrl",
                                                    ".erlang.mk/rebar/inttest/tdeps1/b.rebar.config",
                                                    ".erlang.mk/rebar/inttest/tdeps1/c.hrl",
                                                    ".erlang.mk/rebar/inttest/tdeps1/tdeps1_rt.erl",
                                                    ".erlang.mk/rebar/inttest/tdeps2/a.erl",
                                                    ".erlang.mk/rebar/inttest/tdeps2/a.rebar.config",
                                                    ".erlang.mk/rebar/inttest/tdeps2/b.hrl",
                                                    ".erlang.mk/rebar/inttest/tdeps2/b.rebar.config",
                                                    ".erlang.mk/rebar/inttest/tdeps2/c.hrl",
                                                    ".erlang.mk/rebar/inttest/tdeps2/root.rebar.config",
                                                    ".erlang.mk/rebar/inttest/tdeps2/tdeps2_rt.erl",
                                                    ".erlang.mk/rebar/inttest/tdeps3/a.erl",
                                                    ".erlang.mk/rebar/inttest/tdeps3/a.rebar.config",
                                                    ".erlang.mk/rebar/inttest/tdeps3/b.hrl",
                                                    ".erlang.mk/rebar/inttest/tdeps3/b.rebar.config",
                                                    ".erlang.mk/rebar/inttest/tdeps3/c.hrl",
                                                    ".erlang.mk/rebar/inttest/tdeps3/c.rebar.config",
                                                    ".erlang.mk/rebar/inttest/tdeps3/d.hrl",
                                                    ".erlang.mk/rebar/inttest/tdeps3/d.rebar.config",
                                                    ".erlang.mk/rebar/inttest/tdeps3/e.hrl",
                                                    ".erlang.mk/rebar/inttest/tdeps3/f.hrl",
                                                    ".erlang.mk/rebar/inttest/tdeps3/root.rebar.config",
                                                    ".erlang.mk/rebar/inttest/tdeps3/tdeps3_rt.erl",
                                                    ".erlang.mk/rebar/inttest/tdeps_prefer/a.erl",
                                                    ".erlang.mk/rebar/inttest/tdeps_prefer/a.rebar.config",
                                                    ".erlang.mk/rebar/inttest/tdeps_prefer/b.hrl",
                                                    ".erlang.mk/rebar/inttest/tdeps_prefer/c.hrl",
                                                    ".erlang.mk/rebar/inttest/tdeps_prefer/root.rebar.config",
                                                    ".erlang.mk/rebar/inttest/tdeps_prefer/tdeps_prefer_rt.erl",
                                                    ".erlang.mk/rebar/inttest/tdeps_update/a.erl",
                                                    ".erlang.mk/rebar/inttest/tdeps_update/a.rebar.config",
                                                    ".erlang.mk/rebar/inttest/tdeps_update/a2.rebar.config",
                                                    ".erlang.mk/rebar/inttest/tdeps_update/a3.rebar.config",
                                                    ".erlang.mk/rebar/inttest/tdeps_update/a4.rebar.config",
                                                    ".erlang.mk/rebar/inttest/tdeps_update/b.hrl",
                                                    ".erlang.mk/rebar/inttest/tdeps_update/b.rebar.config",
                                                    ".erlang.mk/rebar/inttest/tdeps_update/b2.rebar.config",
                                                    ".erlang.mk/rebar/inttest/tdeps_update/b3.rebar.config",
                                                    ".erlang.mk/rebar/inttest/tdeps_update/b4.rebar.config",
                                                    ".erlang.mk/rebar/inttest/tdeps_update/c.hrl",
                                                    ".erlang.mk/rebar/inttest/tdeps_update/c.rebar.config",
                                                    ".erlang.mk/rebar/inttest/tdeps_update/c2.hrl",
                                                    ".erlang.mk/rebar/inttest/tdeps_update/c2.rebar.config",
                                                    ".erlang.mk/rebar/inttest/tdeps_update/c3.rebar.config",
                                                    ".erlang.mk/rebar/inttest/tdeps_update/d.hrl",
                                                    ".erlang.mk/rebar/inttest/tdeps_update/root.rebar.config",
                                                    ".erlang.mk/rebar/inttest/tdeps_update/tdeps_update_rt.erl",
                                                    ".erlang.mk/rebar/inttest/thooks/fish.erl",
                                                    ".erlang.mk/rebar/inttest/thooks/rebar.config",
                                                    ".erlang.mk/rebar/inttest/thooks/thooks_rt.erl",
                                                    ".erlang.mk/rebar/inttest/tplugins/bad.config",
                                                    ".erlang.mk/rebar/inttest/tplugins/bad_plugin.erl",
                                                    ".erlang.mk/rebar/inttest/tplugins/fish.erl",
                                                    ".erlang.mk/rebar/inttest/tplugins/rebar.config",
                                                    ".erlang.mk/rebar/inttest/tplugins/test_plugin.erl",
                                                    ".erlang.mk/rebar/inttest/tplugins/tplugins_rt.erl",
                                                    ".erlang.mk/rebar/inttest/vsn_cache/main.erl",
                                                    ".erlang.mk/rebar/inttest/vsn_cache/vsn_cache_rt.erl",
                                                    ".erlang.mk/rebar/inttest/xref_behavior/gen_xref_behavior.erl",
                                                    ".erlang.mk/rebar/inttest/xref_behavior/rebar.config",
                                                    ".erlang.mk/rebar/inttest/xref_behavior/xref_behavior.erl",
                                                    ".erlang.mk/rebar/inttest/xref_behavior/xref_behavior_rt.erl",
                                                    ".erlang.mk/rebar/priv/templates/basicnif.erl",
                                                    ".erlang.mk/rebar/priv/templates/ctsuite.erl",
                                                    ".erlang.mk/rebar/priv/templates/simpleapp.app.src",
                                                    ".erlang.mk/rebar/priv/templates/simpleapp_app.erl",
                                                    ".erlang.mk/rebar/priv/templates/simpleapp_sup.erl",
                                                    ".erlang.mk/rebar/priv/templates/simpleevent.erl",
                                                    ".erlang.mk/rebar/priv/templates/simplefsm.erl",
                                                    ".erlang.mk/rebar/priv/templates/simplelib.app.src",
                                                    ".erlang.mk/rebar/priv/templates/simplelib.erl",
                                                    ".erlang.mk/rebar/priv/templates/simplemod.erl",
                                                    ".erlang.mk/rebar/priv/templates/simplemod_tests.erl",
                                                    ".erlang.mk/rebar/priv/templates/simplenode.reltool.config",
                                                    ".erlang.mk/rebar/priv/templates/simplenode.sys.config",
                                                    ".erlang.mk/rebar/priv/templates/simplesrv.erl",
                                                    ".erlang.mk/rebar/rebar.config",
                                                    ".erlang.mk/rebar/src/rebar.erl",
                                                    ".erlang.mk/rebar/src/rebar_abnfc_compiler.erl",
                                                    ".erlang.mk/rebar/src/rebar_app_utils.erl",
                                                    ".erlang.mk/rebar/src/rebar_appups.erl",
                                                    ".erlang.mk/rebar/src/rebar_asn1_compiler.erl",
                                                    ".erlang.mk/rebar/src/rebar_base_compiler.erl",
                                                    ".erlang.mk/rebar/src/rebar_cleaner.erl",
                                                    ".erlang.mk/rebar/src/rebar_config.erl",
                                                    ".erlang.mk/rebar/src/rebar_core.erl",
                                                    ".erlang.mk/rebar/src/rebar_cover_utils.erl",
                                                    ".erlang.mk/rebar/src/rebar_ct.erl",
                                                    ".erlang.mk/rebar/src/rebar_deps.erl",
                                                    ".erlang.mk/rebar/src/rebar_dia_compiler.erl",
                                                    ".erlang.mk/rebar/src/rebar_dialyzer.erl",
                                                    ".erlang.mk/rebar/src/rebar_edoc.erl",
                                                    ".erlang.mk/rebar/src/rebar_erlc_compiler.erl",
                                                    ".erlang.mk/rebar/src/rebar_erlydtl_compiler.erl",
                                                    ".erlang.mk/rebar/src/rebar_escripter.erl",
                                                    ".erlang.mk/rebar/src/rebar_eunit.erl",
                                                    ".erlang.mk/rebar/src/rebar_file_utils.erl",
                                                    ".erlang.mk/rebar/src/rebar_getopt.erl",
                                                    ".erlang.mk/rebar/src/rebar_lfe_compiler.erl",
                                                    ".erlang.mk/rebar/src/rebar_log.erl",
                                                    ".erlang.mk/rebar/src/rebar_metacmds.erl",
                                                    ".erlang.mk/rebar/src/rebar_mustache.erl",
                                                    ".erlang.mk/rebar/src/rebar_neotoma_compiler.erl",
                                                    ".erlang.mk/rebar/src/rebar_otp_app.erl",
                                                    ".erlang.mk/rebar/src/rebar_otp_appup.erl",
                                                    ".erlang.mk/rebar/src/rebar_port_compiler.erl",
                                                    ".erlang.mk/rebar/src/rebar_proto_compiler.erl",
                                                    ".erlang.mk/rebar/src/rebar_proto_gpb_compiler.erl",
                                                    ".erlang.mk/rebar/src/rebar_protobuffs_compiler.erl",
                                                    ".erlang.mk/rebar/src/rebar_qc.erl",
                                                    ".erlang.mk/rebar/src/rebar_rand_compat.erl",
                                                    ".erlang.mk/rebar/src/rebar_rel_utils.erl",
                                                    ".erlang.mk/rebar/src/rebar_reltool.erl",
                                                    ".erlang.mk/rebar/src/rebar_require_vsn.erl",
                                                    ".erlang.mk/rebar/src/rebar_shell.erl",
                                                    ".erlang.mk/rebar/src/rebar_subdirs.erl",
                                                    ".erlang.mk/rebar/src/rebar_templater.erl",
                                                    ".erlang.mk/rebar/src/rebar_upgrade.erl",
                                                    ".erlang.mk/rebar/src/rebar_utils.erl",
                                                    ".erlang.mk/rebar/src/rebar_xref.erl",
                                                    ".erlang.mk/rebar/src/rmemo.erl",
                                                    ".erlang.mk/rebar/test/rebar_compiler_tests.erl",
                                                    ".erlang.mk/rebar/test/rebar_dia_tests.erl",
                                                    ".erlang.mk/rebar/test/rebar_eunit_tests.erl",
                                                    ".erlang.mk/rebar/test/rebar_file_utils_tests.erl",
                                                    ".erlang.mk/rebar/test/rebar_otp_release_tests.erl",
                                                    ".erlang.mk/rebar/test/rebar_require_vsn_tests.erl",
                                                    ".erlang.mk/rebar/test/rebar_utils_tests.erl",
                                                    ".erlang.mk/rebar/test/rebar_xref_eunit.erl",
                                                    ".erlang.mk/rebar/test/upgrade_project/apps/dummy/src/dummy.app.src",
                                                    ".erlang.mk/rebar/test/upgrade_project/apps/dummy/src/dummy_app.erl",
                                                    ".erlang.mk/rebar/test/upgrade_project/apps/dummy/src/dummy_server.erl",
                                                    ".erlang.mk/rebar/test/upgrade_project/apps/dummy/src/dummy_sup.erl",
                                                    ".erlang.mk/rebar/test/upgrade_project/rebar.config",
                                                    ".erlang.mk/rebar/test/upgrade_project/rel/files/sys.config",
                                                    ".erlang.mk/rebar/test/upgrade_project/rel/reltool.config",
                                                    "apps/butler_base/elvis.config",

after this it also prints all the files of the project which i cannot share because of the policy restriction.

elbrujohalcon commented 3 years ago

Hummm… OK. I understand your privacy concerns, but… At the very end of the output you should have a proper error report, with a call stack and what not… Can you anonymize that one and show me how it looks like?

AK67 commented 3 years ago

at the end i get

===> exit analyzing files: badrpc
Stack: [{rpc,check,2,[{file,"rpc.erl"},{line,1238}]},
        {timer,tc,1,[{file,"timer.erl"},{line,166}]},
        {hank,analyze,5,
              [{file,"/Users/anubhav.k/Work/grey_orange/butler/butler_server/_build/default/plugins/rebar3_hank/src/hank.erl"},
               {line,30}]},
        {rebar3_hank_prv,do,1,
                         [{file,"/Users/anubhav.k/Work/grey_orange/butler/butler_server/_build/default/plugins/rebar3_hank/src/rebar3_hank_prv.erl"},
                          {line,55}]},
        {rebar_core,do,2,
                    [{file,"/home/srijan/workspace/greyorange_rebar3/src/rebar_core.erl"},
                     {line,155}]},
        {rebar3,run_aux,2,
                [{file,"/home/srijan/workspace/greyorange_rebar3/src/rebar3.erl"},
                 {line,182}]},
        {rebar3,main,1,
                [{file,"/home/srijan/workspace/greyorange_rebar3/src/rebar3.erl"},
                 {line,66}]},
        {escript,run,2,[{file,"escript.erl"},{line,758}]}]
elbrujohalcon commented 3 years ago

That's odd… Hank should not run through rpc if you use sequential 🤔

elbrujohalcon commented 3 years ago

Wanna ping me on the Erlanger Slack so we can figure this out more quickly?

elbrujohalcon commented 3 years ago

On the other hand… All those .erlang.mk files are quite suspicious. I think we'll need to add some code to ignore those, @pbrudnick …