Skip to content

Failed creating providers #15

@drozzy

Description

@drozzy

Hi, guys.

Trying to run this on Windows 10, from erlang rebar3 project, with an elixir dependency extreme.

Here is my rebar3.config:

{erl_opts, [debug_info]}.

{plugins, [
	{ rebar3_elixir_compile, ".*", {git, "https://github.com/barrel-db/rebar3_elixir_compile.git", {branch, "master"}}}
]}.


{deps, [
	{extreme, {elixir, "extreme", "0.7.0"}}
]}.

{relx, [{release, { beepub, "0.1.0" },
         [beepub,
          sasl]},

        {sys_config, "./config/sys.config"},
        {vm_args, "./config/vm.args"},

        {dev_mode, true},
        {include_erts, false},

        {extended_start_script, true}]
}.

{profiles, [{prod, [{relx, [{dev_mode, false},
                            {include_erts, true}]}]
            }]
}.

{provider_hooks, [
  {pre, [{compile, {ex, compile}}]}
]}.

{elixir_opts, 
  [
    {env, dev}
  ]
}.

Here is my attempt at compiling it, with debug turned on:

$ DEBUG=1 rebar3 compile
�[0;36m===> Load global config file c:/Users/Andriy/.config/rebar3/rebar.config
�[0m�[0;36m===> Not adding provider hex user from module rebar3_hex_user because it already exists from module rebar3_hex_user
�[0m�[0;36m===> Not adding provider hex cut from module rebar3_hex_cut because it already exists from module rebar3_hex_cut
�[0m�[0;36m===> Not adding provider hex config from module rebar3_hex_config because it already exists from module rebar3_hex_config
�[0m�[0;36m===> Not adding provider hex key from module rebar3_hex_key because it already exists from module rebar3_hex_key
�[0m�[0;36m===> Not adding provider hex info from module rebar3_hex_info because it already exists from module rebar3_hex_info
�[0m�[0;36m===> Not adding provider hex owner from module rebar3_hex_owner because it already exists from module rebar3_hex_owner
�[0m�[0;36m===> Not adding provider hex docs from module rebar3_hex_docs because it already exists from module rebar3_hex_docs
�[0m�[0;36m===> Not adding provider hex search from module rebar3_hex_search because it already exists from module rebar3_hex_search
�[0m�[0;36m===> Not adding provider hex publish from module rebar3_hex_pkg because it already exists from module rebar3_hex_pkg
�[0m�[0;36m===> sh info:
        cwd: "d:/Projects/bee-publisher/beepub"
        cmd: elixir -e 'IO.puts :code.lib_dir(:elixir)'

�[0m�[0;36m===>         opts: []

�[0m�[0;36m===> Port Cmd: cmd /q /c elixir -e 'IO.puts :code.lib_dir(:elixir)'
Port Opts: [exit_status,{line,16384},use_stdio,stderr_to_stdout,hide,eof]

�[0m�[0;36m===> sh(cmd /q /c elixir -e 'IO.puts :code.lib_dir(:elixir)')
failed with return code 255 and the following output:
' was unexpected at this time.

�[0m�[0;36m===> throw: rebar_abort [{rebar_utils,debug_and_abort,2,
                                 [{file,
                                   "/home/tristan/Devel/rebar3/_build/default/lib/rebar/src/rebar_utils.erl"},
                                  {line,585}]},
                                {rebar_utils,sh,2,
                                 [{file,
                                   "/home/tristan/Devel/rebar3/_build/default/lib/rebar/src/rebar_utils.erl"},
                                  {line,182}]},
                                {rebar3_elixir_compile_util,get_details,1,
                                 [{file,
                                   "d:/Projects/bee-publisher/beepub/_build/default/plugins/rebar3_elixir_compile/src/rebar3_elixir_compile_util.erl"},
                                  {line,66}]},
                                {rebar3_elixir_compile,init,1,
                                 [{file,
                                   "d:/Projects/bee-publisher/beepub/_build/default/plugins/rebar3_elixir_compile/src/rebar3_elixir_compile.erl"},
                                  {line,8}]},
                                {rebar_state,
                                 '-create_logic_providers/2-fun-0-',2,
                                 [{file,
                                   "/home/tristan/Devel/rebar3/_build/default/lib/rebar/src/rebar_state.erl"},
                                  {line,409}]},
                                {lists,foldl,3,
                                 [{file,"lists.erl"},{line,1263}]},
                                {rebar_state,create_logic_providers,2,
                                 [{file,
                                   "/home/tristan/Devel/rebar3/_build/default/lib/rebar/src/rebar_state.erl"},
                                  {line,408}]},
                                {rebar_plugins,'-handle_plugins/4-fun-0-',4,
                                 [{file,
                                   "/home/tristan/Devel/rebar3/_build/default/lib/rebar/src/rebar_plugins.erl"},
                                  {line,84}]}]
�[0m�[0;31m===> �[1mFailed creating providers. Run with DEBUG=1 for stacktrace or consult rebar3.crashdump.
�[0m�[0m

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions