Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rebar3 3.24.0 #182859

Merged
merged 2 commits into from
Aug 29, 2024
Merged

rebar3 3.24.0 #182859

merged 2 commits into from
Aug 29, 2024

Conversation

BrewTestBot
Copy link
Member

Created by brew bump


Created with brew bump-formula-pr.

release notes
New features:
- [Turn rich compiler errors on by default](https://github.com/erlang/rebar3/pull/2881)
- [Tweak experimental manifest plugin to return ELP-compatible information](https://github.com/erlang/rebar3/pull/2910)

Bug fixes:

Internal maintenance:

Regarding rich compiler errors, the change is optional.

Given the module:

-module(fake_mod).

-export([diagnostic/1]).

diagnostic(A) ->
    X = add(5 / 0),
    {X,X}.

add(X) -> X.

add(X, Y) -> X + Y.

Calling rebar3 compile can now yield:

...
===> Compiling apps/rebar/src/fake_mod.erl failed
   ┌─ apps/rebar/src/fake_mod.erl:
   │
 5 │  diagnostic(A) ->
   │             ╰── variable 'A' is unused

   ┌─ apps/rebar/src/fake_mod.erl:
   │
 6 │      X = add(5 / 0),
   │                ╰── evaluation of operator '/'/2 will fail with a 'badarith' exception

    ┌─ apps/rebar/src/fake_mod.erl:
    │
 11 │  add(X, Y) -> X + Y.
    │  ╰── function add/2 is unused

and in a terminal supporting color output:

By default, this format is turned on, but can be turned off optionally by configuring values with

{compiler_error_format, minimal}.

If this breaks your tooling, you may want to put it in your global rebar3 config file.

@github-actions github-actions bot added the bump-formula-pr PR was created using `brew bump-formula-pr` label Aug 29, 2024
Copy link
Contributor

🤖 An automated task has requested bottles to be published to this PR.

@github-actions github-actions bot added the CI-published-bottle-commits The commits for the built bottles have been pushed to the PR branch. label Aug 29, 2024
@BrewTestBot BrewTestBot added this pull request to the merge queue Aug 29, 2024
Merged via the queue into master with commit fe3eba7 Aug 29, 2024
15 checks passed
@BrewTestBot BrewTestBot deleted the bump-rebar3-3.24.0 branch August 29, 2024 13:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bump-formula-pr PR was created using `brew bump-formula-pr` CI-published-bottle-commits The commits for the built bottles have been pushed to the PR branch.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants