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

Crash if profile is misconfigured #2930

Open
tsloughter opened this issue Dec 15, 2024 · 1 comment
Open

Crash if profile is misconfigured #2930

tsloughter opened this issue Dec 15, 2024 · 1 comment

Comments

@tsloughter
Copy link
Collaborator

I missed putting [] around the configuration of a profile so it was just a tuple. This caused rebar3 to crash when it tried to use proplists later on and just give the message about running with DIAGNOSTIC=1 instead of an error message. Stacktrace:

===> Stack trace to the error location:
[{proplists,get_value,
     [erl_opts,
      {deps,
          [{eqwalizer_support,
               {git_subdir,"https://github.com/whatsapp/eqwalizer.git",
                   {branch,"main"},
                   "eqwalizer_support"}}]},
      []],
     [{file,"proplists.erl"},{line,214}]},
 {rebar3,test_state,1,
     [{file,"/home/runner/work/rebar3/rebar3/apps/rebar/src/rebar3.erl"},
      {line,477}]},
@tsloughter
Copy link
Collaborator Author

Also, I was running just rebar3 compile so not using the test profile. Seems weird to build the test profile even when it isn't used. I'll look into why we do that... and a fix for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant