Questions tagged [rebar3]

Erlang build tool that makes it easy to compile and test Erlang applications and releases.

Rebar3 is an Erlang tool that makes it easy to create, develop, and release Erlang libraries, applications, and systems in a repeatable manner.

Rebar3 is not Rebar - as the two are completely different.

Rebar3 is also a self-contained Erlang script. It is easy to distribute or embed directly in a project. Tasks or behaviours can be modified or expanded with a plugin system flexible enough that even other languages on the Erlang VM will use it as a build tool.

http://www.rebar3.org/

107 questions
1
vote
2 answers

How to dockerize rebar3-erlang application?

I have encountered some problems with dockerizing my rebar3 app. As I'm trying to run the app (after building) I receive an error /prod/bin/prod: line 272: /prod/erts-11.2.2.1/bin/erl: not found This is my rebar.config: {plugins,…
1
vote
0 answers

Can we use Elixir plugins with EMQ X Broker?

EMQ X has the provision to build with Elixir based plugins as per https://github.com/emqx/emqx-rel#build-with-elixir-plugins. But, it's not compiling and throwing the following error ➜ make ln -snf _build/emqx/lib ./_checkouts EMQX_DESC="EMQ X…
sokc
  • 51
  • 2
1
vote
1 answer

What is the workflow for compiling one file using rebar3?

rebar3 seems to recompile everything every time. Often I am only modifying one file. That's the file I want to recompile, I know everything else is fine. What is the workflow for doing this? Ideally I could do it from the Erlang shell. Rebar3…
Max Heiber
  • 14,346
  • 12
  • 59
  • 97
1
vote
1 answer

erlang library - export module from another directory than src (rebar3)

In rebar3 erlang library I have two modules: t1 and t1 in src directory and t3 module in extras directory. Now in mylib.app.src I'm trying to make them available outside library by: {modules, [t1, t2, t3]} I pointed that extra directory in…
MikolajMGT
  • 113
  • 2
  • 10
1
vote
0 answers

Make rebar compile .core files in erlang project

I am an absolute Erlang newbie and I wonder if it is possible for rebar to compile .core files using rebar3 compile. According to the documentation : https://www.rebar3.org/docs/commands rebar3 will only compile the .app.src and .erl files. And I…
Abhiroop Sarkar
  • 2,251
  • 1
  • 26
  • 45
1
vote
1 answer

How to configure Intellij for the erlang build tool rebar3?

I have started developing for Erlang using Rebar3 in the IntelliJ IDE and have run into the following problem - when trying to use the ide to clean or run i get the following error: Testing started at 8:33 AM ... …
1
vote
1 answer

rebar3 fails to fetch and copy dependencies (LFE project)

After some years I'd like to back working with Erlang/LFE. I've a little project I made to learn the language. I'm unable to fetch dependencies using rebar3 get-deps command. It follows rebar.config, also available here. {erl_opts, [debug_info,…
gsscoder
  • 3,088
  • 4
  • 33
  • 49
1
vote
1 answer

How I create an Erlang app using rebar3 in shell?

We can create application using rebar as below: rebar create-app appid=demo But when execute rebar3 create-app appid=demoin shell, an exception occurred as below: ➜ transaction_publish_service git:(master) rebar3 create-app appid=mqttcli ===>…
Marco Wang
  • 11
  • 1
1
vote
0 answers

How to start ct_logs in common_test

I want to print some message in my test suite use ct:print, but when i run the test suite use >rebar3 ct, the console raise a warning as ct_logs not started and then an ERROR REPORT was print. The ERROR REPORT as below: =ERROR REPORT====…
henry.he
  • 33
  • 3
1
vote
1 answer

library undef issue running rebar3 release

I'm having a strange issue that I can't, for the life of me, figure out. I have a rebar3 app that I have generated a release from. If I run the app using rebar3 shell it runs fine, but if I run the release script with…
1
vote
2 answers

rebar3 project spawns wrong command on other hosts

I have a rebar3 project. In this project, the supervisor should spawn a bunch of Erlang nodes across multiple machines. I found that the nodes were never getting brought up because of an error in the log: sh: no such file or directory…
tekknolagi
  • 10,663
  • 24
  • 75
  • 119
1
vote
1 answer

rebar3 install plugins failed

Env: rebar 3.6.0 on Erlang/OTP 21 Erts 10.0 Ubuntu 16.04 When I try to install the rebar3 pulgins (such as rebar3_hex), it reports: ===> Package <<"rebar3_hex">> not found. Fetching registry updates and trying again... ===> Updating package…
minghu6
  • 101
  • 10
1
vote
1 answer

erlang override spec or ignore break contract error with rebar3

I'm running rebar3 on a project with a few 3rd party dependencies, and one of them has an issue with a defined spec. When I moved to rebar3, a new error popped up showing that one of my method calls breaks a contract: riakc_pb_socket:get(my_app,…
Paul
  • 4,422
  • 5
  • 29
  • 55
1
vote
1 answer

Rebar3 release does not run and crash with cannot expand $ERTS_LIB_DIR in bootfile

Erlang Version = Erlang/OTP 19 I have created a new erlang application using rebar3 Here are the steps: rebar3 new app myapp rebar3 compile rebar3 new release myrel cd myrel rebar3 release cd myrel/myapp/_build/default/rel/myapp/bin ./myapp…
Sammy
  • 13
  • 3
1
vote
1 answer

Where do I call mnesia:create_schema/1 in a relx release?

I have an OTP application 'myapp' which depends on mnesia. Where should I put the call to mnesia:create_schema/1? If I add the dependency to {applications,[]} in myapp.app.src, mnesia starts first and I can't call create_schema in myapp:start/2. It…
Dan
  • 12,409
  • 3
  • 50
  • 87