我是Elixir / Phoenix的新手,我现在正在寻找使用Wallaby(或Hound,但它是同一个问题)编写测试。
为了您的信息,我使用的是Docker镜头。
我试图让https://wiki.blender.org/index.php/Dev:Source/Render/Cycles/Standalone和Cabbage正常工作,但只要我将Wallaby依赖项添加到我的项目中:
escript: exception error: no match of right hand side value undefined
in function rebar_log:log/3 (/home/tristan/Devel/rebar3/_build/default/lib/rebar/src/rebar_log.erl, line 94)
in call from rebar3:handle_error/1 (/home/tristan/Devel/rebar3/_build/default/lib/rebar/src/rebar3.erl, line 325)
in call from escript:run/2 (escript.erl, line 759)
in call from escript:start/1 (escript.erl, line 277)
in call from init:start_em/1
in call from init:do_boot/3
** (Mix) Could not compile dependency :mimerl, "/root/.mix/rebar3 bare compile --paths "/application/_build/test/lib/*/ebin"" command failed. You can recompile this dependency with "mix deps.compile mimerl", update it with "mix deps.update mimerl" or clean it with "mix deps.clean mimerl"
然后当我运行repositories {
maven { url 'https://maven.google.com/' }
}
时出现以下错误:
CacheBuilder
任何知道我为什么会遇到此错误以及如何解决此问题的人?
答案 0 :(得分:0)
我终于弄清楚是什么导致了这个问题:代理!
我首先尝试手动运行此rebar3流程:
docker run --rm -it <container-name> /root/.mix/rebar3
我已经犯了错误。 在容器中玩耍时,我发现删除代理正在使这个过程不再出现任何错误。
所以,无论是关于Docker,都是为了让我的机器通过公共网络工作,取消设置我的机器的公司代理。
答案 1 :(得分:-1)
您可以在依赖项版本之后添加,仅:: test 并尝试使用 mix deps.get ,然后再运行 mix test