運行mix deps.compile時收到錯誤Package unicode_util_compat-0.3.1 not found; Updating package registry; Uncaught error in rebar_core
錯誤。根據https://hex.pm/packages/unicode_util_compat的描述,看起來unicode_util_compat不支持我正在使用的Erlang 20。有什麼我可以做的,讓混合deps.compile工作,而不降級到Erlang 19?未找到包unicode_util_compat-0.3.1; rebar_core中的未捕獲錯誤
與調試控制檯輸出= 1如下
===> Compiling unicode_util_compat
===> run_hooks("e:/Data/elixir-stuff/fin_reporting/deps/unicode_util_compat", pr
e_hooks, compile) -> no hooks defined
===> run_hooks("e:/Data/elixir-stuff/fin_reporting/deps/unicode_util_compat", pr
e_hooks, erlc_compile) -> no hooks defined
===> erlopts [debug_info,debug_info,{d,'OTP20'}]
===> files to compile ["e:/Data/elixir-stuff/fin_reporting/deps/unicode_util_com
pat/src/unicode_util_compat.erl"]
===> Compiled unicode_util_compat.erl
===> run_hooks("e:/Data/elixir-stuff/fin_reporting/deps/unicode_util_compat", po
st_hooks, erlc_compile) -> no hooks defined
===> run_hooks("e:/Data/elixir-stuff/fin_reporting/deps/unicode_util_compat", pr
e_hooks, app_compile) -> no hooks defined
===> run_hooks("e:/Data/elixir-stuff/fin_reporting/deps/unicode_util_compat", po
st_hooks, app_compile) -> no hooks defined
===> run_hooks("e:/Data/elixir-stuff/fin_reporting/deps/unicode_util_compat", po
st_hooks, compile) -> no hooks defined
===> Expanded command sequence to be run: []
===> Expanded command sequence to be run: [{default,app_discovery},
{bare,compile}]
===> Package unicode_util_compat-0.3.1 not found. Fetching registry updates and
trying again...
===> Updating package registry...
===> Fetching registry from "https://repo.hex.pm:443/registry.ets.gz?"
===> Uncaught error in rebar_core. Run with DEBUG=1 to see stacktrace or consult
rebar3.crashdump
===> Uncaught error: {badmatch,
{error,{rebar_prv_update,package_index_download}}}
===> Stack trace to the error location:
[{rebar_packages,handle_missing_package,3,
[{file,"/home/tristan/Devel/rebar3/_build/default/lib/rebar/src
/rebar_packages.erl"},
{line,85}]},
{rebar_app_utils,update_source,3,
[{file,"/home/tristan/Devel/rebar3/_build/default/lib/rebar/sr
c/rebar_app_utils.erl"},
{line,262}]},
{rebar_app_utils,dep_to_app,7,
[{file,"/home/tristan/Devel/rebar3/_build/default/lib/rebar/sr
c/rebar_app_utils.erl"},
{line,228}]},
{rebar_app_utils,'-parse_deps/6-lc$^0/1-0-',6,
[{file,"/home/tristan/Devel/rebar3/_build/default/lib/rebar/sr
c/rebar_app_utils.erl"},
{line,129}]},
{rebar_app_discover,'-do/2-fun-0-',3,
[{file,"/home/tristan/Devel/rebar3/_build/default/lib/rebar
/src/rebar_app_discover.erl"},
{line,41}]},
{lists,foldl,3,[{file,"lists.erl"},{line,1263}]},
{rebar_app_discover,do,2,
[{file,"/home/tristan/Devel/rebar3/_build/default/lib/rebar
/src/rebar_app_discover.erl"},
{line,37}]},
{rebar_prv_app_discovery,do,1,
[{file,"/home/tristan/Devel/rebar3/_build/default/lib/
rebar/src/rebar_prv_app_discovery.erl"},
{line,38}]}]
===> When submitting a bug report, please include the output of `rebar3 report "
your command"`
** (Mix) Could not compile dependency :idna, "escript.exe "c:/Users/I805649/.mix
/rebar3" bare compile --paths "e:/Data/elixir-stuff/fin_reporting/_build/dev/lib
/*/ebin"" command failed. You can recompile this dependency with "mix deps.compi
le idna", update it with "mix deps.update idna" or clean it with "mix deps.clean
idna"
更新/重新安裝鋼筋(和rebar3)本地的 「Erlang的<20」意味着這個包爲Erlang <20添加了'unicode_util',因爲Erlang 20已經包含了該模塊。你可以嘗試使用'DEBUG'設置爲'1'來運行這個並且輸出結果嗎? (在* nix中,這將是'DEBUG = 1 mix deps.compile --all',對Windows沒有把握。) – Dogbert
哇,我從來沒有猜到這就是
請參閱添加到上面的堆棧跟蹤。謝謝。 –