295 questions
1
vote
0
answers
52
views
Why does Erlang/OTP 28 debugger:start() not open the monitor window immediately?
I am following the instructions described in https://www.erlang.org/doc/apps/debugger/debugger_chapter to start the debugger. However, after debugger:start()., I only get the message Command is taking ...
1
vote
0
answers
44
views
Function_clause error when executing Erlang query in CouchDB
I am trying to use an Erlang query in CouchDB. I created an erlang.erl file and a design document in JSON with the language set to Erlang. However, when I execute the query, I get a function_clause ...
1
vote
1
answer
94
views
How to execute an exit function before closing rebar3 shell?
I have a rebar3 app with a supervisor and some modules I want to execute a function before aborting the shell
I have tried adding an exit function in the supervisor,but its not working.I wanted to ...
1
vote
1
answer
112
views
How do I read from sys.config in my ejabberd release?
I'm running ejabberd 23.01- I would like to read some values from my sys.config file.
When running ejabberd as relive in VSCode, running ejabberdctl debug and running application:get_env(ejabberd, ...
1
vote
1
answer
123
views
Timeout issue facing on creating new shortcode Erlang
I was trying to implement an emoji server and write codes for it. But when I test it in the terminal it is showing timeout error. For checking the code please check the alias function for it:
-spec ...
1
vote
0
answers
71
views
How to clear screen in erlang shell for win11?
I want to clear the screeen in erlang shell in win11.
When using powershell, I found it seems only possible to clear screen is to exit erlang shell, then to use ctrl-L for clear.
But it is not what I ...
3
votes
1
answer
137
views
Kernel parameters that use rebar3 in erlang do not take effect
This is the configure file
cat config/sys.config
[
{kernel, [
{inet_dist_listen_min, 25672},
{inet_dist_listen_max, 25680},
{net_ticktime, 360},
{net_tickintensity,...
2
votes
1
answer
64
views
How does it show completely on erl terminal in erlang [duplicate]
It cannot show completely on erl terminal if the result too big in erlang. Is there any way to solve it.
[{rabbit_prelaunch_sup,'_',#Fun<erl_eval.42.3316493>},
{rabbit_prelaunch_sighandler,'_'...
1
vote
1
answer
54
views
Erlang simple "spawn" gets undefined error in windows
I'm learning Erlang and I've written a simple module to test "spawn" function:
-module(concurrent).
-export([go/0, loop/0]).
go() ->
Pid2 = spawn(echo, loop, []).
loop() -> 2.
...
1
vote
1
answer
237
views
Unable to connect a node to Erlang debugger ErlyBerly
I am learning the Erlang debugger ErlyBerly. Started ErlyBerly as follows.
java -jar target/*runnable.jar
I have written a simple Erlang application with an infinite loop so that it keeps running. I ...
2
votes
2
answers
95
views
Erlang lists:filter returns "\n\f"
I'm working on a school project in a functional programming class. The project is about determining if a set of dominos (represented as a list of tuples of two numbers from 1-6) can be put end to end. ...
1
vote
0
answers
75
views
Erlang erlyberly build is failing
Setup: Java 17.0.1, Ubuntu 22.04.1 LTS, openjfx installed
$ sudo apt-get install openjfx
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
.....
$ apt ...
2
votes
1
answer
253
views
How to use debugMsg in eunit and how to print something within the eunit testing although the test times out
I try to get the following to work as described in the erlang eunit documentation:
debugMsg(Text) Outputs the message Text (which can be a plain string,
an IO-list, or just an atom). The result is ...
2
votes
1
answer
97
views
How to store tuple and its size in a file in erlang?
I have created a gen_server that should receive a tuple sent from the erlang shell and write it to a file along with the tuple size.
Example: the input received is {"A","B","C&...
1
vote
1
answer
100
views
Get hidden user input in erlang app running thru rebar3 shell
I need to start an SSH connection in my app which requires a username and password. The username is constant so can be hardcoded, but I want the password to be hidden (similar to read -s pass in bash)....