humdrum00001010
AtomVM Supervisor issue
I’m with ESP32 board, atomvm 0.6.6, elixir 1.7.3 OTP 27, MacOS Silicon
Try to run
defmodule HuntersSup do
@behaviour :supervisor
def start_link(), do: :supervisor.start_link(__MODULE__, [])
@impl :supervisor
def init(_args) do
flags = {:one_for_one, 3, 5}
child =
{:light, {:"Elixir.Light", :start_link, []}, :permanent, 5_000, :worker, [:"Elixir.Light"]}
{:ok, {flags, [child]}}
end
end
this with HuntersSup.start_link() but failed, I revised the flags, child form with GPT-5 with full automation, tried several code, but all didn’t work well.
If I let children empty, it runs, but can’t let it have children.
By the way, the gen_server is working well.
What should I consider?
Marked As Solved
humdrum00001010
Wow. I was in pain almost 2 days straight, just the moment I post this question, GPT-5 solved issue:
child =
{:light, {:"Elixir.Light", :start_link, []}, :permanent, :brutal_kill, :worker,
[:"Elixir.Light"]}
This saved my life. The official repo was for 0.7.0-dev sort of, and my esp32 was running 0.6.6 stable release, which didn’t support some args!
1
Popular in Questions
Hi there,
I am working with Ecto-Postgresql and I need to call all of the records from a specific table but the table has 40,000 record...
New
Hey guys.
I'm new to elixir and im really stocked about it. But I ran into a bit of problem - I need to convert a date sting, for examp...
New
Hi. I’ve noticed that Windows Powershell has it’s own IEX command and you cannot access Elixir’s IEX due to the conflict. This isn’t a cr...
New
Hello, can anybody help here..? I have a list of players and I what to delete an element, but every for loop the list is reverting to ori...
New
What’s the safe way to decode a JSON string into a struct? I want to avoid calling String.to_atom. Jason.decode can give me a map with st...
New
The Elixir Typespec docs show the following syntax for keyword lists in typespecs:
# ...
| [key: type] # keyword lis...
New
I tried installing
elixir 1.11.2
erlang 23.3.4
via asdf in my zsh shell. Enabled the versions locally and globally.
When I list them ...
New
I’m currently trying to understand how to join three tables using Ecto. All the examples I’ve seen use 2, so maybe I’m just missing somet...
New
Hey all,
I discovered Elixir and I love it. I always wanted to learn a functional programming and I intended to go for Haskell, but afte...
New
Hi guys, i’m new in the Elixir world, and i have to say, that i love it!
i’m having some problem to understand anonymous functions with ...
New
Other popular topics
Manning 2016 Halloween weekend sale via Deal of the Day
Friday, October 28 - Half off all MEAPs - code WM102816LT
Saturday, October 29 ...
New
I have a relationship of love and hate with Elixir. Lots of things are just absolutely right, but there are some things that are kind of ...
New
In asking this question I am more interested about the expressiveness of the language itself and less concerned about the availability of...
New
Credo is smart enough to check for (something like) this:
assert length(the_list) == 0
with this response:
Checking if an enum is empt...
New
What is the idiomatic way of matching for not nil in Elixir?
E.g.,
First way:
defp halt_if_not_signed_in(conn, signed_in_account) when...
New
Hello all!
I am typing this post from my new MacBook Pro with the M1 chip. I’m loving it so far, and will probably use it as my daily dr...
New
You’re a programmer, so you don’t need spoon feeding with the conventional drivel about “this is an integer.” No. You need to know what’s...
New
I have followed this StackOverflow post to install the specific version of Erlang.
And When I am running mix ecto.setup then getting fol...
New
To my knowledge, put_in, Map.update etc. all have the one limitation of not automatically creating intermediate keys when needed (for exa...
New
Why is it that the mnesia database isn’t the most preferred database for use in Elixir/Phoenix?
New







