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
0 answers

Running phoenix server and independent elixir app together

I am beginner in elixir. I am working on api . It is run directly from mix by using command iex -S mix . This app includes chat_server and api server. It has seperate mix.exs file. I also need to create website for login/logout functionality for…
NeiL
  • 791
  • 8
  • 35
0
votes
0 answers

elixir project not compile exited in: PluralsightTweet.Application.start(:normal, [])

i'm new to elixir target - read simplet text file started with mix new pluralsight_tweet --sup pilot project deployed success file structure code in file_reader.ex defmodule PluralsightTweet.FileReader do def get_strings_to_tweet(path) do …
smartechno
  • 470
  • 1
  • 5
  • 18
0
votes
1 answer

Custom Mix Task to generate ex files

I'm currently trying to write a mix task that automates the scaffolding of an Elm app in a phoenix (v1.3) project. It's generating all the elm files / js script to add, installing node and elm modules correctly. I'm also generating an elm_view.ex…
0
votes
1 answer

Dependency cannot see its config during compilation

I'm trying to package an app in docker container. It has a dependency on authable hex package. When running: docker build --tag "testing:0.1" --file Dockerfile . ... I get the following compilation error: == Compilation error on file…
oldhomemovie
  • 14,621
  • 13
  • 64
  • 99
0
votes
0 answers

How can I use IEx.pry without mix

I know you can get a breakpoint using IEx.pry when you run an application like iex -S mix. I am working on some elixir exercises that do not use mix. I run it using elixir myfile.exs. How can I run this file using IEx so I can use IEx.pry…
Sam
  • 1,102
  • 11
  • 22
0
votes
1 answer

How can I configure applications only for mix-test?

Suppose we have a module A that requires a configuration. When we consume A, it's just OK to put [applications: [:a]] in mix.exs and put config :a, [] in config/config.exs in our project. But when we're developers of the module A, how/when can we…
0
votes
0 answers

"mix ecto.create" creates a database with tables from other database by itself

When I'm creating a database by: mix ecto.drop mix ecto.create it creates a database with a few tables from other database and project. That project isn't even in Elixir and it's in a different folder. Note that I've not run a migration…
Kooiomo
  • 55
  • 6
0
votes
1 answer

Phoenix - recompile local dependency on file change without server restart

I'm developing a library for Phoenix. I have created a Phoenix project with mix.exs: defp deps do [{:phoenix, "~> 1.2.1"}, ... {:my_package, path: "../my_package"}] end and I want Phoenix to automatically recompile that dependency when I…
Jakub Zawiślak
  • 5,122
  • 2
  • 16
  • 21
0
votes
0 answers

Error during creating package index for rebar3

Here is my problem. I can not build following elixir application on Windows7 behind proxy. I am using git bash and I have set http_proxy and https_proxy env variables. Check is curl www.google.hr and I get response. Repository…
Karlo Smid
  • 525
  • 1
  • 5
  • 13
0
votes
1 answer

Error compiling Ejabberd dependency of a Phoenix application with Mix: could not compile dependency :ejabberd, "mix compile" failed

I have been trying to embed Ejabberd into a Phoenix web application. To do this, I tried to follow this tutorial. The steps were the following: Installed a ubuntu/xenial64 Vagrant box. Installed Elixir according to the official guide. Installed…
0
votes
0 answers

Matching Plug Connection Adapter in Protocol's For

I would like to create a mocked HTTP request for mix test of App.Controller.sign_up/2. How to match %Plug.Conn{adapter: {Plug.Adapters.Test.Conn ... in protocol's for:? Caller defmodule App.Controller do use App.Web, :controller def…
ardhitama
  • 1,949
  • 2
  • 18
  • 29
0
votes
1 answer

Using elixir applications for programs that run only once

When starting an application the return value needs to be a pid or an error. Is it possible to use applications for programs that are meant to only run through there processing once. Something like. defmodule MyApp do use Application def…
Peter Saxton
  • 4,466
  • 5
  • 33
  • 51
0
votes
1 answer

Save color of the System.cmd output in placing it to IO in elixir

I have a pretty simple mix task, actually it wraps npm command and returns it output to the command line: defmodule Mix.Tasks.JsLint do use Mix.Task @shortdoc "Runs javascript lint" def run(_args) do System.cmd("npm", ["run", "lint"],…
Alex Antonov
  • 14,134
  • 7
  • 65
  • 142
0
votes
1 answer

IEx.configure equivalent for mix test?

When debugging tests, it's easy to put some IO.inspect statements in there to see what's going on. This works great, until objects grow too big. What is the mix equivalent of iex's IEx.configure [inspect: [limit: 1000]] when running mix test?
Filip Haglund
  • 13,919
  • 13
  • 64
  • 113
0
votes
1 answer

Why is mix not using much of OTP?

I am trying to learn OTP by looking at good examples of projects using OTP. I studied the code for mix. But looks like mix is not using much of OTP. To me, mix has lot of possible usecases for OTP. Examples like, compiling multiple files…
Navaneeth K N
  • 15,295
  • 38
  • 126
  • 184
1 2 3
22
23