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
5
votes
4 answers

How do I recompile rebar3 with an Erlang/OTP 25 compiler? Running Elixir 1.13.4

I´m following the free screencast / tutorial in Phoenix LiveView Starter But I´m not even able to start, as mix setup fails with: =ERROR REPORT==== 6-Jul-2022::12:47:58.702361 === beam/beam_load.c(551): Error loading function rebar3:parse_args/1: op…
martins
  • 9,669
  • 11
  • 57
  • 85
5
votes
1 answer

How to add a dependency from my local file system with Rebar3?

I have two Erlang applications: single app mylogger and umbrella app myapp. I want to include a current version of mylogger as a dependency to myapp. Rebar3 only suggests to add deps from git like {mylogger, {git,…
Nick Saw
  • 457
  • 4
  • 15
5
votes
2 answers

rebar3 generate edoc for multiple apps

If I have an OTP layout like this: foo/ - apps/ - bar1/ - src/ - bar2 - src/ How can I generate edoc for both bar1 and bar2? If I run: rebar3 edoc what I get is separate .html files in bar1/doc and bar2/doc, and none of the…
Andriy Drozdyuk
  • 58,435
  • 50
  • 171
  • 272
5
votes
1 answer

Can I run an escript app from rebar3?

After creating an escript app: $ rebar3 new escript hello Can I run with with rebar3, instead of calling escriptize first? I.e. something like this? $ rebar3 run
Andriy Drozdyuk
  • 58,435
  • 50
  • 171
  • 272
4
votes
1 answer

How do I debug rebar3 erlang in vscode with the erlang plugin?

I am using the Erlang language plugin for vscode. I created a new rebar3 app and created a simple app that doesnt use a supervisor: -module(test_app_app). -behaviour(application). -export([start/2, stop/1]). start(_StartType, _StartArgs) -> …
Peter Short
  • 762
  • 6
  • 17
4
votes
2 answers

Why am I getting errors with git but not with hex deps in rebar3

I've come across this issue several times when using dependencies in my Erlang projects, such as {rabbit_common, "3.7.8"} vs {rabbit_common, ".*", {git, "https://github.com/rabbitmq/rabbitmq-common.git", {tag, "v3.7.8"}} When using git I had to go…
Roman Rabinovich
  • 868
  • 6
  • 13
4
votes
1 answer

Phoenix: Running mix ecto.create Error Compiling Ranch Dependency

I'm trying to go through the Up And Running tutorial on the Phoenix framework site. I have the following setup : macOS 10.14.5 Phoenix 1.4.6 Elixir 1.8.2 Erlang/OTP 22 I create the project with the mix phx.new command. I get prompted to fetch and…
Swift Dev Journal
  • 19,282
  • 4
  • 56
  • 66
4
votes
0 answers

How to specify another static c library as a dependency/source in rebar?

I'm trying to build an application that uses an erlang library. (https://github.com/leo-project/erocksdb). This library itself is a wrapper over a C++ static library (rocksdb, compiled as librocksdb.a). rocksdb is made a git submodule of erocksdb,…
saketrp
  • 2,323
  • 3
  • 16
  • 18
4
votes
2 answers

Does Rebar3 compile Dialyzer modules with HiPE?

When running Dialyzer stand-alone, it compiles its modules with HiPE, in order to speed up the analysis: dialyzer --src -r . Checking whether the PLT /home/foo/.dialyzer_plt is up-to-date... yes Compiling some key modules to native code... done…
legoscia
  • 39,593
  • 22
  • 116
  • 167
4
votes
1 answer

Using profiling tools with rebar

I'm using rebar3 to build my application. I need to track down some performance problems and want to use fprof but it doesnt seem to be included in the release made by rebar. How can I get fprof (or eprof) included in the rebar release?
Daniel
  • 43
  • 2
4
votes
2 answers

How to get an Erlang app to run at starting rebar3

I can start the application manually from the rebar3 shell by doing application:start(lager) followed by application:start(myapp). I'd like this to happen without having to type it out, for example by executing a shell script that tells rebar3 to…
4
votes
1 answer

Is it possible to run a private Hex (Erlang) dependency manager (and if so how)?

I'm working in an Erlang environment. I'm looking to establish a dependency manager so that our build server can publish binaries for reuse instead of using source code dependencies. The Hexpm GitHub project implies that it is possible to run it…
JoshOfAllTrades
  • 523
  • 3
  • 13
3
votes
0 answers

Kernel parameters that use rebar3 in erlang do not take effect

This is the configure file cat config/sys.config [ {kernel, [ {inet_dist_listen_min, 25672}, {inet_dist_listen_max, 25680}, {net_ticktime, 360}, {net_tickintensity, 10} ]} ]. run: rebar3 shell --sname…
孙海城
  • 389
  • 1
  • 7
3
votes
2 answers

Undefined function rebar3 using elxir 1.13.4 and otp 25

mix do deps.get, compile Resolving Hex dependencies... Dependency resolution completed: Unchanged: castore 0.1.17 connection 1.1.0 cowboy 2.9.0 cowboy_telemetry 0.4.0 cowlib 2.11.0 db_connection 2.4.2 decimal 2.0.0 ecto 3.8.4 …
tee
  • 31
  • 2
3
votes
0 answers

rebar3 doesnt compile erlydtl file

I have a problem which my rebar3 does not compile the erlydtl files (.dtl) and I have looking around for a while but not solution. Previously it worked, but after I upgrade erlang to the newest version, the *.dtl file is not compiled and…
Yarin Nim
  • 73
  • 3
1
2 3 4 5 6 7 8