Questions tagged [erl]

The erl program is Erlang Emulator, starting an Erlang runtime system.

The executable script erl is a front-end to the Erlang runtime system. Windows users probably wants to use the werl program instead, which runs in its own window with scrollbars and supports command-line editing.

160 questions
0
votes
1 answer

Unable join_cluster rabbitmq

I have 2 nodes rabbitmq01 and rabbitmq2 when i try to join_cluster rabbitmq2 the following error appears I also tried to check the version of erl
0
votes
0 answers

I want to establish a web socket connection between the client, and server

I've been having this problem for months now, and I've scrolled all over the web, and got no answer. Right now, I am running Yaws version 2.0.6, and Erlang OTP 19 for my project. I know to establish a websocket connection, the client needs to make a…
0
votes
0 answers

Hi, I am working on a Yaws web socket connection issue

I have stumbled upon a issue successfully enabling a web socket connection between the web browser, and the Yaws web server. Both, the Javascript code sample by the client, and Erlang code samples by the server that I want to show came from samples…
0
votes
2 answers

Erlang How can I merge Two list into tuple list

In erlang, I want to merge two list as the following when, A = [1, 2, 3, 4], B= ["A1", "A2", "A3", A4], wanted result [{1, "A1"}, {2, "A2"}, {3, "A3"}, {4, A4}] I've tried the following ''' - module(test). - export([start/0]). start() -> …
Zaro
  • 1
  • 2
0
votes
1 answer

Erlang Erl commands not working on Windows 10

Hello i was trying to issue some distributed erlang commands such as erl -sname/erl -name and i do not get a response. If i put . at the end it says syntax error. If i don't it won't return anything and it will treat it like an unfinished…
Bercovici Adrian
  • 8,794
  • 17
  • 73
  • 152
0
votes
1 answer

What can cause SystemLimitError when calling timer.tc?

I am writing a simple module in Elixir that loads data into a gen_server written in Erlang. I need to measure time of loading operations, and this is the thing I have problem with. When I call :timer.tc() on line 46 (the one with crateStations) I…
MarkusSPE
  • 81
  • 1
  • 10
0
votes
2 answers

Why cannot I run rebar3 commands in an application generated with rebar3?

I have been trying to generate a rebar3 application, however I have encountered a problem, I have generated new app using rebar3, and when I try to compile it I get error as such: > ===> Verifying dependencies... > ===> Uncaught error in…
MarkusSPE
  • 81
  • 1
  • 10
0
votes
1 answer

ejabberd doen't work because erl.exe always crash

I have installed ejabberd 15.07.40, but it doen't work because erl.exe always crash. From application log I see a lot of the following events: Event[0]: Log Name: Application Source: Windows Error Reporting Date: 2020-04-23T09:47:39.937 …
0
votes
0 answers

Installing elixir - I just get crashes

I am trying to do my first "Hello World" in elixir. First step to just install it on my Macbook. I am doing: brew update brew install elixir After that I can do: erl --version Erlang/OTP 19 [erts-8.3] [source-d5c06c6] [64-bit] [smp:4:4]…
Abby
  • 3,169
  • 1
  • 21
  • 40
0
votes
1 answer

Reading multiple words from the user/console using fread in Erlang

I want to read multiple words and store them in a variable using Erlang. When I use fread to record a string, it records only the first word. 1> {ok,[Message]} = io:fread("Type your message : ", "~ts"). Type your message : Hello…
Sam
  • 1,765
  • 11
  • 82
  • 176
0
votes
0 answers

Message passing in Erlang does not print to console

I'm trying to talk in a chatroom using erlang. Everything is almost good in it I think but none of the messages send to other users print to the console. I sent up some tests to see if anything would print and it looks like some stuff is printing,…
Sam
  • 1,765
  • 11
  • 82
  • 176
0
votes
1 answer

How to add a column to all connected nodes - mnesia table

I am trying to add new column to an existing mnesia table. For that, I use following code. test()-> Transformer = fun(X)-> % when is_record(X, user) -> %previous users #userss{name = X#user.name, age = X#user.age, …
Sachith Muhandiram
  • 2,819
  • 10
  • 45
  • 94
0
votes
2 answers

How to add a column to mnesia table

I am trying to add new column to an existing mnesia table. For that, I use following code. test()-> Transformer = fun(X)-> #users{name = X#user.name, age = X#user.age, email = X#user.email, year =…
Sachith Muhandiram
  • 2,819
  • 10
  • 45
  • 94
0
votes
1 answer

Parsing ejabberd packet with erlang

I am using ejabberd18.09 for IM application. the application has few features that needed to add extensions to the ejabberd(xmpp) messages. I created a custom module on the offline_message_hook to capture the offline messages and send them to my own…
Tareq Assi
  • 149
  • 13
0
votes
1 answer

Why is the syntax error coming in erlang spawn function call - " syntax error before: ')' "?

This is the code i am running in an online compiler -module(helloworld). -export([start/0, call/2]). start() -> % error in the below line as syntax error before: ')' Pid = spawn(?MODULE, call, ["hello","world"]…
Jagan PJ
  • 9
  • 1
  • 5