erlang-otp Questions

1

Getting error when installing Elixir dependencies, all Mix command are throwing same exception 23:31:44.447 [notice] Application ssl exited: exited in: :ssl_app.start(:normal, []) ** (EXIT) an exc...
Buss asked 6/8, 2023 at 5:44

2

Setup new project with command mix new project_name it setup everything without any error or warning message, cd to project and ran command iex -S mix it throws error lib/helloworld.ex defmodule H...
Dementia asked 7/8, 2023 at 3:12

0

I am trying to trace/debug ct_netconfc module in order to understand its internals. I tried the ErlyBerly tracing application as mentioned below. But I could not Trace the module. Please help me re...
Counterinsurgency asked 11/3, 2023 at 15:32

4

Solved

I tried the inets library but it times out. I don't think it supports HTTPS. I am trying to use ibrowse, but it isn't working.
Arbuthnot asked 22/5, 2010 at 1:5

1

I tried to implement FizzBuzz in elixir. I think it works, but I have some weird behavior and it may be my environment. I can run the following .exs file using elixir fizzbuzz.exs and on the first ...
Possessed asked 30/1, 2020 at 0:14

2

Solved

Suppose you have an OTP process whose completion you want to synchronously wait on (where "completion" may be a normal exit or a crash, stop, etc.). Suppose further that for business reas...
Naples asked 15/7, 2021 at 16:26

12

Solved

Many programs return their version number with a command like: $ program --version program (platform info) v1.2.3 This is useful for scripting the installation or maintenance of the program, and s...
Embryonic asked 5/3, 2012 at 2:6

1

Solved

What is the Erlang/OTP release schedule? How many major versions are released per year? Is there a schedule you can link to? Which major versions have long-term support (LTS)?
Ambassadress asked 31/1, 2021 at 13:11

2

Solved

What is the best way in elixir to create a foreground process that tick on every given amount of time? My main problem is that an approach like: defmoulde Ticker do def tick do do_something() ...
Attalanta asked 14/7, 2015 at 14:57

4

In GenServer.start_link/3 I can register a name locally using an atom for a process like this: defmodule Worker do use GenServer def start_link do GenServer.start_link(__MODULE__, nil, name: :...
Indira asked 18/8, 2016 at 7:43

1

Solved

I'm using the :client API to connect to an external node and use code there remotely, the thing though is that I'm using Dokku for deployment and it would be really nice if I could specify a ssh ke...
Despatch asked 29/11, 2015 at 18:52

2

As I understand it any artifact that is needed in a release should be put in a priv directory. In the case of an umbrella project should there be a single priv directory at the umbrella level or on...
Lotty asked 20/11, 2016 at 12:28

6

Solved

I have an elixir project with a defined version. How can I access this from within the running application. in mix.exs def project do [app: :my_app, version: "0.0.1"] end I would like to be...
Variola asked 6/10, 2015 at 10:57

2

Solved

I wanted to send a message to a process after a delay, and discovered erlang:send_after/4. When looking at the docs it looked like this is exactly what I wanted: erlang:send_after(Time, Dest, M...
Sure asked 17/10, 2017 at 22:26

2

Solved

Let's say a supervisor has a child that's continuously failing for some reason. As per restart strategy, it will restart the failing child until it reaches max restart count. What will happen to th...
Louisalouisburg asked 29/12, 2018 at 5:50

1

I am trying to terminate whole supervision tree from a supervised worker process. Here is my supervision tree: +--------------------------+ | | +--------+ Sup1: Dynamic Supervisor +---------+ ...
Anaconda asked 14/11, 2018 at 10:31

4

I'm trying to install Erlang/OTP following the documentation at http://www.erlang.org/doc/installation_guide/INSTALL.html. I'm having problems building the Erlang/OTP release. When I run make, I ge...
Staub asked 19/6, 2014 at 15:0

1

Solved

From the mix deps documentation: :runtime - whether the dependency is part of runtime applications. If the :applications key is not provided in def application in your mix.exs file, Mix will a...
Lurlinelusa asked 23/10, 2018 at 22:39

4

Solved

This question is in the context of the Beam VM and the capabilities that it provides, not in the general context of what a Turing complete language can do. I want to invest some time to learn eithe...
Sussman asked 22/6, 2016 at 10:0

0

I have a standard situation, two distributed Erlang nodes, one master one standby. When I stop the master the standby comes on - failover, when I start the master the standby stops - takeover. Eve...
Ashlan asked 12/4, 2018 at 21:31

1

I have a DynamicSupervisor that starts children with restart: :transient. By default, if a child exits abnormally, it will be restarted by the supervisor. However, by design, if the child fails af...
Cytochemistry asked 13/2, 2018 at 19:49

4

Solved

I've reduced the size of the question, cause it was too big. Here's the code: defmodule MayRaiseGenServer do use GenServer def start_link do IO.puts "started MyServer, name is #{__MODULE__}" ...
Reina asked 1/9, 2016 at 18:50

3

Solved

I have a supervisor with two worker processes: a TCP client which handles connection to a remote server and an FSM which handles the connection protocol. Handling TCP errors in the child process c...
Foray asked 24/9, 2010 at 9:25

2

Solved

I'm doing a tutorial and it says "In this guide, we will learn how to build a complete Elixir application, with its own supervision tree, configuration, tests and more". In plain english, what is ...
Rundlet asked 3/10, 2017 at 22:37

2

Solved

I have defined an Elixir behaviour X. A callback start_link is spec'ed as: @callback start_link( args :: producer_args, opts :: GenServer.options ) :: GenServer.on_start where producer_args ty...
Obscenity asked 15/9, 2017 at 20:21

© 2022 - 2024 — McMap. All rights reserved.