Docker/Rebar3/Hex Basic Issue: "No project builder is configured for type mix"

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Docker/Rebar3/Hex Basic Issue: "No project builder is configured for type mix"

Stu Bailey
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@afdf4ee1bea2:/# 
cd /usr/local/src
root@afdf4ee1bea2:/usr/local/src#
root@afdf4ee1bea2:/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@afdf4ee1bea2:/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



root@afdf4ee1bea2:/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@afdf4ee1bea2:/usr/local/src/myapp#
root@afdf4ee1bea2:/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@afdf4ee1bea2:/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@afdf4ee1bea2:/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@afdf4ee1bea2:/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
[hidden email]
http://erlang.org/mailman/listinfo/erlang-questions
Reply | Threaded
Open this post in threaded view
|

Re: Docker/Rebar3/Hex Basic Issue: "No project builder is configured for type mix"

Tristan Sloughter-4
`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@afdf4ee1bea2:/# 
cd /usr/local/src
root@afdf4ee1bea2:/usr/local/src#
root@afdf4ee1bea2:/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@afdf4ee1bea2:/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



root@afdf4ee1bea2:/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@afdf4ee1bea2:/usr/local/src/myapp#
root@afdf4ee1bea2:/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@afdf4ee1bea2:/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@afdf4ee1bea2:/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@afdf4ee1bea2:/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
http://erlang.org/mailman/listinfo/erlang-questions



_______________________________________________
erlang-questions mailing list
[hidden email]
http://erlang.org/mailman/listinfo/erlang-questions
Reply | Threaded
Open this post in threaded view
|

Re: Docker/Rebar3/Hex Basic Issue: "No project builder is configured for type mix"

Stu Bailey
Thanks for the quick response.

On Thu, Jan 31, 2019 at 3:04 PM Tristan Sloughter <[hidden email]> wrote:
`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@afdf4ee1bea2:/# 
cd /usr/local/src
root@afdf4ee1bea2:/usr/local/src#
root@afdf4ee1bea2:/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@afdf4ee1bea2:/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



root@afdf4ee1bea2:/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@afdf4ee1bea2:/usr/local/src/myapp#
root@afdf4ee1bea2:/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@afdf4ee1bea2:/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@afdf4ee1bea2:/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@afdf4ee1bea2:/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 mailing list
[hidden email]
http://erlang.org/mailman/listinfo/erlang-questions

_______________________________________________
erlang-questions mailing list
[hidden email]
http://erlang.org/mailman/listinfo/erlang-questions