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

Unable to use Wallaby in release mode #783

Open
1 task done
RodolfoSilva opened this issue Jul 18, 2024 · 0 comments
Open
1 task done

Unable to use Wallaby in release mode #783

RodolfoSilva opened this issue Jul 18, 2024 · 0 comments

Comments

@RodolfoSilva
Copy link

Elixir and Erlang/OTP versions

Erlang/OTP 26 [erts-14.2.1] [source] [64-bit] [smp:16:16] [ds:16:16:10] [async-threads:1] [jit:ns]

Elixir 1.16.3 (compiled with Erlang/OTP 26)

Operating system

MAC

Browser

Chrome

Driver

Chromedriver

Correct Configuration

  • I confirm that I have Wallaby configured correctly.

Current behavior

11:05:23.736 [notice] Application wallaby exited: Wallaby.start(:normal, []) returned an error: shutdown: failed to start child: Wallaby.SessionStore
    ** (EXIT) an exception was raised:
        ** (UndefinedFunctionError) function ExUnit.after_suite/1 is undefined (module ExUnit is not available)
            ExUnit.after_suite(#Function<0.14964136/1 in Wallaby.SessionStore.init/1>)
            (wallaby 0.30.9) lib/wallaby/session_store.ex:41: Wallaby.SessionStore.init/1
            (stdlib 5.2) gen_server.erl:980: :gen_server.init_it/2
            (stdlib 5.2) gen_server.erl:935: :gen_server.init_it/6
            (stdlib 5.2) proc_lib.erl:241: :proc_lib.init_p_do_apply/3
Kernel pid terminated (application_controller) ("{application_start_failure,wallaby,{{shutdown,{failed_to_start_child,'Elixir.Wallaby.SessionStore',{undef,[{'Elixir.ExUnit',after_suite,[#Fun<Elixir.Wallaby.SessionStore.0.14964136>],[]},{'Elixir.Wallaby.SessionStore',init,1,[{file,\"lib/wallaby/session_store.ex\"},{line,41}]},{gen_server,init_it,2,[{file,\"gen_server.erl\"},{line,980}]},{gen_server,init_it,6,[{file,\"gen_server.erl\"},{line,935}]},{proc_lib,init_p_do_apply,3,[{file,\"proc_lib.erl\"},{line,241}]}]}}},{'Elixir.Wallaby',start,[normal,[]]}}}")

Crash dump is being written to: erl_crash.dump...done

Expected behavior

Be able to use Wallby in release mode without force the ex_unit in the release.

More explanation: #589
CC: @lackac

Test Code & HTML

Generate a release without ex_unit, and try to run.

Demonstration Project

No response

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