Mix is a build tool that provides tasks for creating, compiling, testing Elixir projects, as well as handle dependencies, and more.
Questions tagged [elixir-mix]
339 questions
0
votes
1 answer
Kafka elixir consumer keeps crashing
I have 2 mix projects one is called server which publishes factorials to kafka and the other is a consumer who is supposed to solve the factorials, but when i start the consumer it keeps crashing.
server.exs
defmodule Server do
alias…

Rafael
- 83
- 3
- 10
0
votes
1 answer
Docker of mix release crashes with "Exec format error"
Background
I have an executable created via mix release which works just fine when I run it with start on my local machine. However, my docker image crashes when trying to start the executable and I don't know why.
Docker
FROM elixir:1.10
# Install…

Flame_Phoenix
- 16,489
- 37
- 131
- 266
0
votes
1 answer
Mix release "start_iex" shows error while "start" does not
Background
I am creating the release of an umbrella app via mix release. However, even though I can manually run the app, I get some errors when launching it.
mix release
I am trying to run an app with mix release. This command works fine and it…

Flame_Phoenix
- 16,489
- 37
- 131
- 266
0
votes
1 answer
Hex install failed on aws instance , failed to fetch metadata
This is on an an aws lightsail instance, was trying to deploy my phoenix app, mix local.hex fails , any idea how to fix this please ?
could be a DNS issue but not sure.
Could not install Hex because Mix could not download metadata at…

Man Eesh
- 21
- 3
0
votes
1 answer
What is the best way to enable development hot reloading when not using pheonix?
So I'm learning Elixir and Pheonix looked too much to start learning, so I make a simple JSON Rest API with Plug and Poison, but to see any changes I need to stop the server and run mix run --no-halt again. I came from nodeJS and it has nodemon that…

SnakesCantWearBoots
- 365
- 5
- 15
0
votes
3 answers
Elixir: mix deps.get Request failed (403) and no cached copy
I am attempting to start using ratatouille in a project. This is,
I believe, the latest version of rataouille from github.
I started a new project for my learnings:
mix new rata_count
In the ratatouille installation instructions I use the deps:
…

Trailing Dots
- 378
- 1
- 12
0
votes
1 answer
Running Elixir app on Windows: Can't set short node name
I built an Elixir app using mix release and when I run it using .\_build\prod\rel\prod\bin\prod start, I get the following error:
2020-02-08 19:57:52.981000
args: []
format: "Can't set short node name!\nPlease check your configuration\n"
…

Nightwolf
- 4,495
- 2
- 21
- 29
0
votes
1 answer
How to install an older version of Hex?
If I run mix local.hex, I'd get the latest version of Hex. How can I:
list available versions;
install an older version?

Alexander Popov
- 23,073
- 19
- 91
- 130
0
votes
1 answer
How to properly use mix phx.gen.html? Receiving an error: "(Mix) Expected the schema, "posts", to be a valid module name"
I'm trying to learn elixir and phoenix off this video: https://www.youtube.com/watch?v=KiP23mk760E&list=PLtTtLKRL6UYGxOHToRYnXBynon5plZ7Jd&index=2 which despite being fairly fresh seems to be outdated on some info. For example "mix phoenix.gen.html"…

spectatorx
- 373
- 2
- 7
- 22
0
votes
1 answer
Running arbitrary commands in mix
I've got some protocol buffers definitions, in proto/*.proto. My current Makefile-based build system compiles each of them into an Erlang module and header, and into a self-descriptor (as a .pb file) and then embeds the descriptor as a BEAM…

Roger Lipscombe
- 89,048
- 55
- 235
- 380
0
votes
1 answer
How to write ExUnit test cases in elixir for an escript project
I have an escript project done in Elixir using mix.
The project has two or three .ex files that needs to be executed using certain arguments using the "escript" command
It is like a client server based project where one escript run, starts the…

Skadoosh
- 699
- 2
- 11
- 27
0
votes
1 answer
elixir - error loading module ranch_server - recompile this module with an 20 compiler
I'm trying to run an existing elixir project that works on my other computer, on a new computer (both are mac).
When I run iex -S mix I get:
iex -S mix
Erlang/OTP 20 [erts-9.3] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:10] [hipe]…

BeniaminoBaggins
- 11,202
- 41
- 152
- 287
0
votes
1 answer
Possible root cause for mix ecto.migrate resulting in recv failed timeout
I am new to Elixir/Erlang. As I need to setup an existing application, I am executing below step to generate migrations:
mix ecto.migrate
After migrating 9 tables, everytime it is throwing following error:
00:55:30.074 [error] Mariaex.Protocol…

Venkat
- 37
- 3
0
votes
0 answers
Elixir - "mix test" sometimes hanging when started via "Mix.shell.cmd"
In my Mix app, there is a particular set of circumstances that seems to be causing the process that runs the test suite to hang. Here's the scenario -
In test/test_helper.exs, prior to the call to ExUnit.start(), I have a call to Mix.Shell.IO.yes?,…

skwidbreth
- 7,888
- 11
- 58
- 105
0
votes
2 answers
Elixir - Mix run example with arguments
Elixir is powered by Erlang OTP, which uses Mix as a build tool for creating and running applications.
I am now learning elixir as a beginner
I can create a mix application from command line by specifying mix new sample
and I write some code in…

Skadoosh
- 699
- 2
- 11
- 27