I'm having some issues with trying to set up actors and supervisors.
The code is a bit too large for discord message, so here is a gist: https://gist.github.com/mooreryan/f5746df4105072a6bce09d973b0031e4
The error I'm getting is this:
=SUPERVISOR REPORT==== 5-Feb-2026::11:49:08.154546 ===
supervisor: {<0.83.0>,gleam@otp@static_supervisor}
errorContext: child_terminated
reason: <<"oops">>
offender: [{pid,<0.84.0>},
{id,0},
{mfargs,
{gleam@otp@static_supervisor,start_child_callback,
[#Fun<gleam@[email protected]>]}},
{restart_type,permanent},
{significant,false},
{shutdown,5000},
{child_type,worker}]
runtime error: panic
callee exited: ProcessDown(//erl(#Ref<0.68767505.3939500033.239374>), //erl(<0.84.0>), Abnormal("oops"))
stacktrace:
gleam/erlang/process.-perform_call/3-anonymous-1- src/gleam/erlang/process.gleam:626
gleam_erlang_ffi.select /Users/ryan/Projects/tmp/xx/build/dev/erlang/gleam_erlang/_gleam_artefacts/gleam_erlang_ffi.erl:60
gleam/erlang/process.perform_call src/gleam/erlang/process.gleam:644
xx.main src/xx.gleam:56
There were a couple other questions that got similar errors:
- https://discord.com/channels/768594524158427167/1447302045387329719
- https://discord.com/channels/768594524158427167/1411751781469261976
But, I wasn't able to figure out what was going wrong with my code from them.
(I have some experience with Elixir, having read Elixir in Action, but have only made toy apps with it, and am not comfortable with OTP.)