Questions tagged [elixir-mix]

Mix is a build tool that provides tasks for creating, compiling, testing Elixir projects, as well as handle dependencies, and more.

339 questions
0
votes
1 answer

Mix task spawning a process does nothing

I created a mix task which spawns a process. It uses Flow, reads from a stream and writes into a file defined in a consumer. At the end of the day it just spawn some processes. If I run it through iex it works fine as long as I leave the shell…
lapinkoira
  • 8,320
  • 9
  • 51
  • 94
0
votes
1 answer

Mix Hex add fork on github as new package

maybe a stupid question and maybe already asked but I would like to know, how I can add a modified fork as new package to hex. Don't want to know how register with hex register and hex publish. Just want to know which changes I have to make. I…
Sardoan
  • 767
  • 1
  • 10
  • 25
0
votes
1 answer

Define dependant application on compile time on mix.ex

In a module I am calling HTTPoison.start() (related question Use HTTPoison to initialize a module attribute) But I would like to configure it in mix.ex, I have read the mix ex documentation and added it to extra_applications: [:httpoison] but didnt…
lapinkoira
  • 8,320
  • 9
  • 51
  • 94
0
votes
1 answer

Set Proxy in Mix

defmodule Elixirrest.MixProject do use Mix.Project def project do [ app: :elixirrest, version: "0.1.0", elixir: "~> 1.6", start_permanent: Mix.env() == :prod, deps: deps() ] end # Run "mix help…
Rafael Augusto
  • 777
  • 5
  • 14
  • 28
0
votes
1 answer

How to configure test_pattern for mix test

I'd like to change the test_pattern for mix test but I'm having trouble figuring out the right way to perform this configuration. I tried a number of variants of configuration in config/test.exs but never figured it out. Eventually I found that…
Paymahn Moghadasian
  • 9,301
  • 13
  • 56
  • 94
0
votes
2 answers

'MIX_ENV' is not recognized as an internal or external command, operable program or batch file

MIX_ENV=test mix compile ...is not working on Windows cmd. It shows: 'MIX_ENV' is not recognized as an internal or external command, operable program or batch file How to solve this problem?
0
votes
1 answer

Elixir: run two scripts in mix aliases

So I was trying to run scripts one after another. But in between there has to be something else like ecto.create. But when I do mix work it didn't really work. Only the first script runs. def aliases do [ work: [ "run script1.exs", …
Shih-Min Lee
  • 9,350
  • 7
  • 37
  • 67
0
votes
0 answers

Getting dependencies paths of the root project in Mix

As my project consists of some mix projects using nifs, I'm trying to make a custom compiler, so that *.c files could be compiled along with these mix projects. Let's say I have a project A, which has a dependency of B, that has some native code…
Com Piler
  • 257
  • 5
  • 14
0
votes
1 answer

Failed to run init method on using GenServer

I am new to elixir and recently found that GenServer is a good way to manage client/server API. So I tried to create a GenServer module to manage database connection but failed. Below is my code: defmodule RedisClient do use GenServer require…
Joey Yi Zhao
  • 37,514
  • 71
  • 268
  • 523
0
votes
0 answers

mix will not recompile apps when change "config.exs" in umbrella

➜ tree . ├── README.md ├── _build │   └── dev │   ├── consolidated │   │   ├── Elixir.Collectable.beam │   │   ├── Elixir.Enumerable.beam │   │   ├── Elixir.IEx.Info.beam │   │   ├── Elixir.Inspect.beam │   │   ├──…
beiping96
  • 644
  • 3
  • 12
0
votes
1 answer

Elixir: Not able to compile the ExActor dependency

I am trying to run a calculator demo from ExActor Demos. It requires adding the new ExActor module as a dependency in the mix.exs file as following. defp deps do [ {:exactor, "~> 2.2.3", warn_missing: false} ] end I did mix deps.get and mix…
Prince Bhatti
  • 4,671
  • 4
  • 18
  • 24
0
votes
1 answer

Error while trying to use `Phoenix.Token` in a Mix task

I have a Phoenix application that uses Phoenix.Token to sign and verify tokens. This works fine within the app itself, but I get a strange error when trying to use Phoenix.Token from a Mix task. Here's a minimal example: defmodule…
Nathan Long
  • 122,748
  • 97
  • 336
  • 451
0
votes
1 answer

Mix install.archive fails and asks for -i to specify directory

I am running this command $ mix archive.install github ninenines/cowboy * Getting new package (https://github.com/ninenines/cowboy.git) remote: Counting objects: 9525, done. remote: Compressing objects: 100% (13/13), done. remote:…
Matt
  • 978
  • 10
  • 24
0
votes
1 answer

IEx block with sudo and System.cmd("mount")

Some precision : $> iex --version Erlang/OTP 20 [erts-9.0] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:10] [hipe] [kernel-poll:false] IEx 1.4.4 $> mix --version Erlang/OTP 20 [erts-9.0] [source] [64-bit] [smp:8:8] [ds:8:8:10]…
0
votes
1 answer

Elixir List Comprehension to Create a New List of Structs

I'm quite new to Elixir, and trying to yield a new list of structs using list comprehension, and for the life of me I can't seem to get this right: holdings = ServiceX.update_holdings( fn() -> for n <- 1..3, do: n end, &(for n <-…
J du Preez
  • 145
  • 9