[erlang-questions] Docker/Rebar3/Hex Basic Issue: "No project builder is configured for type mix"

Tristan Sloughter t@REDACTED
Fri Feb 1 00:04:08 CET 2019


`rest_client` is an Elixir/mix project. To use it you'll need Elixir as well.

Tristan

On Thu, Jan 31, 2019, at 16:01, Stu Bailey wrote:
> Hi all,
> 
> I'm trying to efficiently get up and running with Erlang, and I've immediately hit a roadblock and did not see any clear indication on causes or suggestions from a quick Google search so I thought I'd post here.
> 
> I can make a new app with the Erlang Docker container no problem:
> 
> bash-3.2$ docker run -it -v /Users/me/scratch:/usr/local/src erlang bash
> root@REDACTED:/# 
> cd /usr/local/src
> root@REDACTED:/usr/local/src#
> root@REDACTED:/usr/local/src# rebar3 new app myapp
> rebar3 new app myapp
> ===> Writing myapp/src/myapp_app.erl
> ===> Writing myapp/src/myapp_sup.erl
> ===> Writing myapp/src/myapp.app.src
> ===> Writing myapp/rebar.config
> ===> Writing myapp/.gitignore
> ===> Writing myapp/LICENSE
> ===> Writing myapp/README.md
> root@REDACTED:/usr/local/src# rebar3 shell
> rebar3 shell
> ===> Verifying dependencies...
> Erlang/OTP 21 [erts-10.2.3] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:1] [hipe]
> 
> Eshell V10.2.3 (abort with ^G)
> 1> application:start(myapp).
> application:start(myapp).
> 2> C-c C-c
> 
> 
> Then I follow this for using packages https://medium.com/erlang-central/building-your-first-erlang-app-using-rebar3-25f40b109aad
> 
> root@REDACTED:/usr/local/src/myapp# cat rebar.config
> cat rebar.config
> {erl_opts, [debug_info]}.
> {deps, []}.
> 
> {shell, [
>  % {config, "config/sys.config"},
>  {apps, [myapp]}
> ]}.
> {plugins, [rebar3_hex]}.
> root@REDACTED:/usr/local/src/myapp#
> root@REDACTED:/usr/local/src/myapp# rebar3 update
> rebar3 update
> ===> Fetching rebar3_hex ({pkg,<<"rebar3_hex">>,<<"6.4.0">>})
> ===> Downloaded package, caching at /root/.cache/rebar3/hex/hexpm/packages/rebar3_hex-6.4.0.tar
> ===> Compiling rebar3_hex
> 
> So far so good then I search for a specific package "restclient"
> 
> root@REDACTED:/usr/local/src/myapp# rebar3 hex search restclient
> rebar3 hex search restclient
> Results:
> 
> rest_client: RestClient is a generic REST client library. It generates structs and functions
> for use with APIs.
> 
> Now I add rest_client as a dep and attempt rebar3 compile and this where the problem occurs
> 
> root@REDACTED:/usr/local/src/myapp# cat rebar.config
> cat rebar.config
> {erl_opts, [debug_info]}.
> {deps, [rest_client]}.
> 
> {shell, [
>  % {config, "config/sys.config"},
>  {apps, [myapp]}
> ]}.
> {plugins, [rebar3_hex]}.
> root@REDACTED:/usr/local/src/myapp# rebar3 compile
> rebar3 compile
> ===> Verifying dependencies...
> ===> Fetching rest_client ({pkg,<<"rest_client">>,<<"0.0.1">>})
> ===> Downloaded package, caching at /root/.cache/rebar3/hex/hexpm/packages/rest_client-0.0.1.tar
> ===> Fetching httpotion ({pkg,<<"httpotion">>,<<"2.1.0">>})
> ===> Downloaded package, caching at /root/.cache/rebar3/hex/hexpm/packages/httpotion-2.1.0.tar
> ===> Fetching inflex ({pkg,<<"inflex">>,<<"1.4.1">>})
> ===> Downloaded package, caching at /root/.cache/rebar3/hex/hexpm/packages/inflex-1.4.1.tar
> ===> Fetching mock ({pkg,<<"mock">>,<<"0.1.3">>})
> ===> Downloaded package, caching at /root/.cache/rebar3/hex/hexpm/packages/mock-0.1.3.tar
> ===> Fetching poison ({pkg,<<"poison">>,<<"1.5.2">>})
> ===> Downloaded package, caching at /root/.cache/rebar3/hex/hexpm/packages/poison-1.5.2.tar
> ===> Fetching meck ({pkg,<<"meck">>,<<"0.8.13">>})
> ===> Downloaded package, caching at /root/.cache/rebar3/hex/hexpm/packages/meck-0.8.13.tar
> ===> Compiling httpotion
> ===> Error building application httpotion:
>  No project builder is configured for type mix
> 
> Thoughts? Any help would be greatly appreciated.
> 
> Thanks!
> Stu
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20190131/4864872e/attachment.htm>


More information about the erlang-questions mailing list