Skip to main content
Filter by
Sorted by
Tagged with
1 vote
0 answers
31 views

feck:profanities() function handling extended ascii characters

I use feck:profanities to identify the profanities. this function correctly works for the normal text messages. But, when the message has extended ascii characters though the message contains a ...
Hashini Udara's user avatar
1 vote
0 answers
16 views

asdf: after modifying downloaded code of a plugin, how do I then use asdf in the normal way?

asdf install erlang 12.3.4.11 failed to compile due to openssl 3.0 having removed FIPS_mode. By setting the environment variable KERL_AUTOCLEAN=0 the sources are preserved and I was able to fix the ...
Rashid's user avatar
  • 51
1 vote
1 answer
52 views

Elixir not finding erlang library

I'm getting back at an old phoenix project I stopped working on 3 years ago. While trying to compile it, I keep having an error I couldn't resolve for the whole afternoon. == Compilation error in file ...
Shirraz's user avatar
  • 302
1 vote
0 answers
32 views

Rabbitmq memory usage at the startup

I'm trying to figure out how to configure RabbitMQ + Erlang to have the smallest memory footprint possible at startup. Using RabbitMQ 3.13.6 and Erlang/OTP 26 (14.2.5.2) with Ubuntu i get about 50 Mb ...
Vladimir M's user avatar
1 vote
1 answer
33 views

Having trouble interpreting this Eshell crash report

I'm trying to use the ecpool library to pool Mongo db connections. My supervisor's init looks like what I added in the first code snippet. mongo_client is a module that I use to setup the connection ...
Marcel N.'s user avatar
  • 13.9k
1 vote
1 answer
39 views

Running erlang distributed application using rebar3

I am new to rebar3. I have a simple chat app which consists of two modules namely; my_server and my_client. in ordinar case, I can run the server module by openning the terminal and type: my_server:...
anfamn's user avatar
  • 65
2 votes
1 answer
41 views

mnesia data replication on centralized server

I am newbie to mnesia. As to my understanding of data replication in mnesia, it is used to make a copy of the database to each node in the cluster, so if the the master node crashed, then one of the ...
anfamn's user avatar
  • 65
1 vote
0 answers
55 views

Broken pipe error with Ports between Elixir and C [closed]

I am attempting to write a program in Elixir that connects to a C program via Port and erl_interface. I got the C code up and running and managed to send data through the port as well as decode and ...
hilbor's user avatar
  • 55
1 vote
0 answers
55 views

Arrow keys not recognized in iex or erl

I have recently switched from Ubuntu to Manjaro 24.0. I have come across a strange issue with iex and erl. When I run either of them the arrow keys are not being picked up, I am unable to scroll ...
Arthur's user avatar
  • 2,080
1 vote
1 answer
69 views

Why doesn't enqueueing messages in Erlang require a lock?

The Erlang runtime does attempt to take the lock of another running process if it is available, but it seems perfectly able to manipulate parts of the recieving process without taking the process's ...
blueberry's user avatar
  • 201
1 vote
1 answer
72 views

Broadcast message to all joined clients when a new client joins the same room in Erlang

I have been developing a chatroom application using message passing. I want to broadcast a message to all joined clients when a new client joins the same room. The codes I'm using as follows: client....
anfamn's user avatar
  • 65
3 votes
1 answer
68 views

How do I get rebar3 to show runtime errors during boot?

I have an erlang application, which I've recently starting building use rebar3. Since doing so, any runtime errors which get thrown while the application is booting (eg the address for the server is ...
lucas's user avatar
  • 1,989
1 vote
1 answer
37 views

Extract all values from Erlang orddic

fetch_keys(Orddict) Returns a list of all keys in a dictionary. So, how to return all values from dictionary whatever the keys are? I visited the documentation site and it seems there is no such ...
anfamn's user avatar
  • 65
2 votes
1 answer
36 views

How to convert gb_trees to json?

Is there an efficient way to convert gb_trees to json in erlang or maps? Here is a truncated example: {46, {{25,56}, {fld,{25,56},0}, {{25,30}, ...
heiheshang's user avatar
1 vote
0 answers
23 views

yaws is stucked and can not receive any new HTTP connection

We used yaws server with embedded mode and the server can be started to process some requests. HAProxy is used in front end to monitor yaws cluster nodes and receive/dispatch new HTTP webpage/...
yaocl's user avatar
  • 111
2 votes
2 answers
46 views

Cannot add dependency to rebar3 config

I have problem with adding dependency (I'm using rebar3 for compiling). For example I want use jsx (tried also with jimmy and some other) so I added below lines in rebar.config (as it is stated on ...
user1235's user avatar
1 vote
1 answer
42 views

How to split long lines in Erlang modules (like '\' in C)

I probably just used the wrong search phrases, but I didn't find it in the docs. I'd like to know if there is a way to divide long content into multiple lines in an Erlang module. E.g. If I have to ...
mattg's user avatar
  • 53
1 vote
1 answer
39 views

Printing all ets table values

I'm ongoing of learning erlang. The code sniped from Programming Erlang by Joe Armstrong -module(my_bank). -behaviour(gen_server). -export([start/0]). -export([init/1, handle_call/3, handle_cast/2, ...
anfamn's user avatar
  • 65
1 vote
1 answer
93 views

Optimise count(*) query for pagination

What is the best approach to do pagination ,if I dont want to use select count(*) to get the total number of records at the same time i want to show page no. also how to optimise count(*) queries I'm ...
Sam K Varghese's user avatar
1 vote
0 answers
34 views

RabbitMQ installer indicates my Erlang is too old

I am trying to install RabbitMQ on a brand new VM Windows server 2019. I first successfully installed Erlang 23.2 and then attempted to Install RabbitMQ 3.8.14. However RabbitMQ installer returns with ...
John Sheridan's user avatar
-1 votes
1 answer
66 views

Client registration for chat application using erlang

I'm newbie to erlang. I have been working on a group chat application using erlang. The thing come into my mind is how to allow users to sign up for an account filling some information such as email ...
anfamn's user avatar
  • 65
1 vote
1 answer
45 views

Riak leaving node indefinitely waiting to handoff the partion to crash node

I have a 5-node Riak cluster running version 2.9.10. All nodes are on the same version. I attempted to remove one node from the cluster to upgrade its disk. However, the node became stuck while ...
user103373's user avatar
1 vote
1 answer
137 views

Erlang/OTP with elixir fails

I am trying to set elixir up as a back-end for React, and I have done a bunch of stuff to get it running. I cannot seem to make it work. "10:09:43.125 [error] beam/beam_load.c(206): Error loading ...
Ian's user avatar
  • 11
1 vote
1 answer
80 views

Erlang OTP supervisor: start_child does not work when another child is executing

I am writing a simple Erlang application that manages auctions. When a new auction is created I would like to create a new child process to handle it. The function call is the following one: ...
Salvatore Lombardi's user avatar
1 vote
0 answers
43 views

RabbitMQ's status shows Stopped and cannot be started

RabbitMQ log prompts: enter image description here And when I enter "rabbitmqctl status" prompt in the sbin folder: enter image description here The web address where I got help:Unable to ...
yst's user avatar
  • 11
1 vote
1 answer
76 views

Error: invalid child spec in supervisor start_child function

In my erlang application i have a top level supervisor that monitors a cowboy server (gen_server): start_link() -> supervisor:start_link({local, ?SERVER}, ?MODULE, []). init([]) -> ...
Salvatore Lombardi's user avatar
1 vote
1 answer
47 views

Atom pattern matching in an overloaded function head

Brief description I'm making an Air Pollution Monitor system, where you can add various stations, readings, and then read this saved data afterwards. Problem I have an issue while trying to match ...
deaponn's user avatar
  • 859
1 vote
1 answer
101 views

elixir/erlang stacktrace. Correct function call interpretation

How to interpret a function attribute in FunctionClauseError %FunctionClauseError{ module: MyApp.MyModule, function: :"-load_data/4-inlined-0-", arity: 1, kind: nil, args: ...
Arek Kostrzeba's user avatar
1 vote
1 answer
95 views

Rebar3 cannot download packages behind proxy, CA certificate is missing/unknown

When trying to download packages to be compiled with rebar3 behind a proxy server, especially in corporate environment with custom CA certificate, there is an error: TLS client: In state certify at ...
Ondrej Valenta's user avatar
0 votes
0 answers
149 views

Using gleam, cannot import 'gleam/otp/process'

Using Gleam, what is best practice for spawning a process: import gleam/io import gleam/http import gleam/http/response import gleam/http/request import gleam/int import gleam/otp/process // <<&...
Alexander Mills's user avatar
0 votes
2 answers
485 views

Zig Concurrency Vs Erlang Concurrency, is Zig less efficient than Erlang?

I wrote the following two examples to test the concurrency of Zig and Erlang. % Erlang -module(spwntest). disp()-> _ = 234. main(_) -> F = fun(_) -> spawn(fun() -> disp() end)...
gmcoding's user avatar
  • 239
-1 votes
1 answer
43 views

Creaating a new Key Value dict from previous dict

So, I have a dict called conquered. The porpouse of this dict is store a Key, Value dict of lists to use concurrency on a divide and conquer method to search for values. The code goes on: -module(...
Lukas Wilkeer's user avatar
1 vote
1 answer
51 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 ...
Kaushik .p's user avatar
-1 votes
1 answer
121 views

rebar3 does not compile anything in `src` directory

I would expect an error to happen or something in the build folder to show up. Here is my rebar.config: {plugins, [ {rebar3_gleam, "1.0.0"} ]}. {provider_hooks, [ {pre, [{compile, {...
Alexander Mills's user avatar
1 vote
1 answer
48 views

Ejabberd Migration from 23 to 24

After migrate ejabberd version 23.04 to 24.02 we are getting error to start with node name as ip. We are try to run the below command to get the status get the error sbin/ejabberdctl --node ejabberd@...
Venkateshwaran Kathiresan's user avatar
3 votes
1 answer
66 views

How to use compiled erlang modules in an elixir project?

I have an erlang application that has been compiled already so I do not have access to the source code. The folder structure looks like this base_app lib package_1 ebin - package_1....
Michael Oshosanya's user avatar
0 votes
0 answers
37 views

ejabberd_sql:handle_reconnect/2:491 odbc connection failed ejabberd

We are using ejabberd version 24.02. Ejabberd is frequently disconnected with Mysql. 2024-03-19 05:27:46.126230+00:00 [warning] <0.3616.0>@ejabberd_sql:handle_reconnect/2:491 odbc connection ...
Venkateshwaran Kathiresan's user avatar
2 votes
1 answer
48 views

Lisp Flavored Erlang: Can't find include lib include/ltest-macros.lfe

I am trying to run a new project which was created by "rebar3 new lfe-main". However, I am seeing the following error upon my first run of rebar lfe run: /home/<username>/src/<...
Dan Jaouen's user avatar
1 vote
0 answers
68 views

Rabbitmq fails to start and getting Erlang eaacces error

Describe the bug RabbitMQ is not working after Installed Erlang OTP 24.1 and RabbitMQ Server 3.9.8 To Reproduce User has administrator privileges In administrator Mode install Erlang OTP 24.1 and ...
Amit Kumar's user avatar
1 vote
1 answer
99 views

Erlang: binary_to_term explanation

I've some old elrang (17.1) project on my hand and I need some help understanding some parts of the code. Using it I'm creating a object in sets table with those values {:name=>"TestCurrencies&...
Piotr Aleksandrowicz's user avatar
0 votes
1 answer
160 views

How to extend emqx clientInfo to get more fields during HTTP Authorization

I have emqx running in docker and i`m using a .net api as HTTP Authorization service (https://www.emqx.io/docs/en/latest/access-control/authz/authz.html). I want to know if there is a way to get more ...
zango123's user avatar
  • 1,648
3 votes
1 answer
44 views

Transforming `erl_parse:abstract_form()` to `erl_syntax:syntaxTree()`

I would like to transform an erl_parse:abstract_form() representation into an erl_syntax:syntaxTree(). Is there a straightforward way to achieve this? My main reason for wanting this transformation ...
Duncan Paul's user avatar
4 votes
1 answer
81 views

Who is the sender of Erlang's trace messages and what can I assume based on it?

When using erlang:trace/3, the tracing process receives "trace messages" which tell the story of the traced process. For the purpose of message ordering (i.e. the guarantee that messages ...
radrow's user avatar
  • 6,939
1 vote
0 answers
33 views

Snmp_ex2_simple_standard_test throws an error “failed retrieving agent data”

The SNMP test module snmp_ex2_simple_standard_test has different test cases to test various SNMP operations. I considered the test case related to the SNMP GET operation to simplify the debugging. I ...
Bhuvan's user avatar
  • 410
2 votes
2 answers
168 views

Passing list to function results in no case clause matching

I am attempting to pass a list into a function and I am just now learning erlang. So I am new. I get this error in my shell when I attempt to build my erl file. exception error: no case clause ...
learning_erlang_brown_i's user avatar
1 vote
1 answer
71 views

How to build Erlang v24 for couchdb?

I'm trying to compile erlang 24 in yocto build system, the recommended version for CouchDB, but it fails. I'm using meta-erlang layer. This is the error I am getting: | configure: WARNING: No GLU ...
BlameCapitalism's user avatar
2 votes
1 answer
605 views

the table identifier does not refer to an existing ETS table

In a GenServer def init(_opts \\ []) do table = :ets.new(:my_table, [:duplicate_bag, :public]) {:ok, %{}} end def add_player(zone_id, socket_id) do :ets.thing( :my_table, ...
bezzoon's user avatar
  • 1,967
1 vote
0 answers
157 views

Chocolatey package will not install rabbitmq and erlang as dependencies

I have created a nuget package (nupkg) and stored it in a gitlab package registry. The .nuspec file used to create the package contains: Reference to a directory containing a Windows service .msi ...
Steve sheppard's user avatar
3 votes
1 answer
96 views

Loading specific module from external project

I have a project composed of several apps. The apps use some of the same records and functions to communicate, so I would like to make a module "shared" between them. I tried using the code:...
halfway258's user avatar
1 vote
1 answer
22 views

function file/2 undefined in generated code from Erlang's yecc

When using Erlang's yecc to generate a parser from a grammar definition, my file compiled successfully with yecc:file/1, but the generated code wouldn't compile, with the following error: src/parse....
Sam Weaver's user avatar
  • 1,079

1
2 3 4 5
194