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

Run/debug configs broken for Mix ExUnit on OTP 25 #3035

Open
leahgoldberg opened this issue Jan 30, 2023 · 1 comment
Open

Run/debug configs broken for Mix ExUnit on OTP 25 #3035

leahgoldberg opened this issue Jan 30, 2023 · 1 comment

Comments

@leahgoldberg
Copy link

Describe the bug
Since upgrading to OTP 25/Elixir 1.14, run/debug configurations no longer run in IntelliJ. They fail with the following error

** (BadArityError) #Function<0.82203088/3 in :elixir.eval_external_handler/1> with arity 3 called with 2 arguments ({Config, :config}, [:argon2_elixir, [parallelism: 2]])
    (stdlib 4.1.1) erl_eval.erl:689: :erl_eval.do_apply/6
    (stdlib 4.1.1) erl_eval.erl:123: :erl_eval.exprs/5
    (elixir 1.14.2) lib/code.ex:425: Code.validated_eval_string/3
    (elixir 1.14.2) lib/config.ex:288: Config.__eval__!/3
    (mix 1.14.2) lib/mix/tasks/loadconfig.ex:54: Mix.Tasks.Loadconfig.load_compile/1
    (mix 1.14.2) lib/mix/task.ex:421: anonymous fn/3 in Mix.Task.run_task/4

To Reproduce
Steps to reproduce the behavior:

  1. Install Elixir 1.14.2-otp-25 via asdf
  2. Use this as the project SDK
  3. Import apps as a Mix project, ensure Elixir 1.14.2-otp-25 is set as the module for each
  4. Try to run a mix test via the run/debug configuration

Expected behavior
Tests should run

Logs

** (BadArityError) #Function<0.82203088/3 in :elixir.eval_external_handler/1> with arity 3 called with 2 arguments ({Config, :config}, [:argon2_elixir, [parallelism: 2]])
    (stdlib 4.1.1) erl_eval.erl:689: :erl_eval.do_apply/6
    (stdlib 4.1.1) erl_eval.erl:123: :erl_eval.exprs/5
    (elixir 1.14.2) lib/code.ex:425: Code.validated_eval_string/3
    (elixir 1.14.2) lib/config.ex:288: Config.__eval__!/3
    (mix 1.14.2) lib/mix/tasks/loadconfig.ex:54: Mix.Tasks.Loadconfig.load_compile/1
    (mix 1.14.2) lib/mix/task.ex:421: anonymous fn/3 in Mix.Task.run_task/4

Desktop:

  • OS: macOS
  • Version: 13.1

Erlang:

  • Installer: asdf
  • Version: 25

Elixir:

  • Installer: asdf
  • Version: 1.14.2

Plugin:

  • Version: 14.0.0

IntelliJ:

  • Version: 2022.3.2

Additional context
This is not an issue with my local env since mix exunit tests run just fine in the terminal (whether it's iterm or the intelliJ terminal)

@KronicDeth KronicDeth added this to the 14.0.2 milestone Feb 21, 2023
@KronicDeth KronicDeth modified the milestones: 15.0.0, 15.0.1, 15.0.2 Apr 14, 2023
@KronicDeth KronicDeth modified the milestones: 15.1.0, 15.1.1 Jul 8, 2023
@KronicDeth KronicDeth modified the milestones: 16.0.1, 16.0.2 Dec 8, 2023
@leahgoldberg
Copy link
Author

hello wanted to check in here and see if there's been any update! I'm still experiencing this issue on IntelliJ v2023.3.5 and plugin v17.0.0. thanks 🙏

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

No branches or pull requests

2 participants