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

Error when fetching offline hexdocs for Elixir core & kernel

I can run mix hex.docs online timex to open the latest online docs for the timex package, and I can run mix hex.docs offline timex to download a cache of those same timex docs and open them offline in the browser, which is super handy during flights…
Topher Hunt
  • 4,404
  • 2
  • 27
  • 51
0
votes
2 answers

iterating 2D array in Elixir

I am new to Elixir language and I am having some issues while writing a piece of code. What I am given is a 2D array like list1 = [ [1 ,2,3,4,"nil"], [6,7,8,9,10,], [11,"nil",13,"nil",15], …
0
votes
0 answers

Using MyXQL with Phoenix - Can't connect to database

I am using the MyXQL driver with Ecto in Phoenix, and am trying to connect to an already existing MySQL database running on a Debian 11 server. I can access the server normally using mysql -p, and can access it through Express (which is what I was…
Basil
  • 488
  • 1
  • 15
0
votes
1 answer

Elixir: How to run tests with "mod" set inside mix.exs?

In my mix.exs I have: ... def application do [ mod: {MyProject, []}, extra_applications: [:logger] ] end ... I use the mod in order to execute my project (e.g.: mix run myproject ARGS). However, when I try to run mix test, it seems to…
tokosh
  • 1,772
  • 3
  • 20
  • 37
0
votes
0 answers

Somehow Instream.Connection is not picking the defined config in dev environment?

I have defined a InfluxConnection module defmodule MyModule.InfluxConnection do use Instream.Connection, otp_app: :my_app def safe_query(query, opts \\ [log: false]) ... def safe_write(data, opts \\ [log: false]) ... end and the config…
0
votes
1 answer

Adding 'timex v3.7' fails Phoenix service to start for 'parse_trans_codegen'

Reason: I was missing erlang-syntax_tools package. When I try it on a container, there is no issue... will close the issue. I'm using latest package, will re-install or just use container for the while. Steps to reproduce when I add {:timex, "~>…
AbhishekKr
  • 300
  • 2
  • 12
0
votes
1 answer

Parse XML to JSON Elixir

anyone knows How to convert xml into json. I tried Sweetyxml but its not converting xml into json. Using this gist https://gist.github.com/spint/40717d4e6912d8cea929 Reading json {:ok, xmldoc} =…
Sohaib Anwaar
  • 1,517
  • 1
  • 12
  • 29
0
votes
2 answers

'"erl.exe"' is not recognized as an internal or external command, operable program or batch file

'"erl.exe"' is not recognized as an internal or external command, operable program or batch file. Elixir and Erlang were running fine until today when I did a version update. I don't really have access to a good version manager for Elixir since I…
TinyBFG
  • 1
  • 2
0
votes
1 answer

(File.Error) could not read file "": no such file or directory

I'm trying to run an elixir project, but when i try to install the dependencies with mix deps.get, i get this error: ** (File.Error) could not read file "/mnt/c/Users/user/Desktop/project/config/dev\r.exs": no such file or directory (elixir…
0
votes
0 answers

Why is mix xref graph giving me empirically wrong results?

I'm getting results from mix xref graph that, in some cases, seem to be empirically wrong. e.g. # lists 81 modules mix xref graph --sink lib/some_module.ex --label compile --only-node # recompiles 7 modules touch lib/some_module.ex && mix compile…
0
votes
1 answer

** (Mix) Could not compile dependency :epipe,

I am trying out Crawly with this tutorial https://hexdocs.pm/crawly/tutorial.html I add the needed dependencies defp deps do [ {:crawly, "~> 0.13.0"}, {:floki, "~> 0.26.0"} ] end I run mix deps.get and add the spider: defmodule…
Nikolay Patarov
  • 305
  • 3
  • 11
0
votes
1 answer

How to invoke webpack on `mix test` command

I am writing a small test app that exists only when tests are ran, otherwise not. Therefore I would like to have webpack perform asset copying when it is started. In package.json I have added "scripts": { "test_pack": "webpack --mode…
aywen
  • 75
  • 1
  • 1
  • 9
0
votes
0 answers

getting permission denied error when trying to run mix release

I followed this tutorial and created a build with few modifications. After generating a build with dockerfile, when I try to run the release I get permission denied error. Context: Trying to generate release with docker file and put tar release…
Tanweer
  • 567
  • 1
  • 5
  • 17
0
votes
3 answers

Quoting and escaping for mix cmd aliases

I can, in principle, run any shell commands as mix tasks by defining aliases in mix.exs that start with cmd. But I am struggling with white spaces, quoting, and backslash escaping. Here is some non-working examples: defp aliases do f1: ["cmd echo…
FooF
  • 4,323
  • 2
  • 31
  • 47
0
votes
1 answer

adding second child to supervisor throws error

I want to add a second child to my supervisor but i get the following error. ** (Mix) Could not start application cloner_worker: exited in: ClonerWorker.Application.start(:normal, []) ** (EXIT) an exception was raised: ** (ArgumentError) The module…
Rafael
  • 83
  • 3
  • 10