beno

beno

Mix.Task has Phoenix dependency?

I created a simple application with only :redix and :csv as dependencies. However, when I added a Mix task (called generate) to this project and tried to run it, I got back all these Phoenix related errors, which of course I have not included in this project. Any ideas?

% mix generate 

17:43:10.343 [error] beam/beam_load.c(148): Error loading module 'Elixir.Mix.Tasks.Local.Phoenix':
  please re-compile this module with an Erlang/OTP 25 compiler

17:43:10.343 [error] Loading of /Users/michel/.mix/archives/phoenix_new/phoenix_new/ebin/Elixir.Mix.Tasks.Local.Phoenix.beam failed: :badfile

17:43:10.345 [error] Loading of /Users/michel/.mix/archives/phoenix_new/phoenix_new/ebin/Elixir.Mix.Tasks.Phoenix.New.beam failed: :badfile

17:43:10.345 [error] beam/beam_load.c(148): Error loading module 'Elixir.Mix.Tasks.Phoenix.New':
  please re-compile this module with an Erlang/OTP 25 compiler

** (Mix) The task "generate" could not be found

EDIT: never mind, I forgot to put the task in the Mix.Tasks namespace. Still, it seems strange Phoenix appears like that.

First Post!

sodapopcan

sodapopcan

You’re seeing the archive for the mix phx.new command which is available globally (outside of mix projects). I’m assuming since it was outside the namespace it was treating it as an archive and ensuring local archives are compiled but you haven’t yet updated phx_new since you upgrading to OTP 26? That’s my best semi-educated guess :joy:

Where Next?

Popular in Questions Top

marius95
Hello everyone, I try to use an Javascript Event Handler in my root.html.leex file. Therefore I created a function in the app.js file: ...
New
siddhant3030
Hi, I have to write a raw query for one of my project. But till now I have used ecto queries and don’t have much experience writing raw ...
New
minhajuddin
I have seen a lot of code which picks the first element from a list using Enum.at(0) instead of List.first. Is there a reason why people ...
New
JorisKok
I have a server on AWS, and was running a load test using artillery. When looking at the Phoenix dashboard I see the Ports going to 100% ...
New
JulienCorb
I am trying to implement my new.html.eex file to create new posts on my website. new.html.eex: <h1>Create Post</h1> <%= ...
New
stefanluptak
Hello everybody, usually, I use a 29" ultra-wide monitor for VSCode which can easily accomodate explorer (files panel) + file with code ...
New
chensan
I have a User schema with a :from_id field set to type :string: defmodule TweetBot.Repo.Migrations.CreateUsers do use Ecto.Migration ...
New
Brian
What is the proper way to load a module from a file in to IEX? In the python world, doing something like this pretty standard: from ....
New
dotdotdotPaul
Okay, I’m having a heck of a time trying to figure out how to best handle the validation of belongs_to associations in Ecto. I’m sure I’...
New
openscript
Hello! Sorry for this astonishing simple question, but I’m really stuck. I try to set up the intellij-elixir plugin, but I don’t know ho...
New

Other popular topics Top

danschultzer
None of the current solutions worked well for me, so I went ahead and built a user management system from scratch. This project took far...
548 29377 241
New
minhajuddin
I have seen a lot of code which picks the first element from a list using Enum.at(0) instead of List.first. Is there a reason why people ...
New
JakeBecker
TL;DR: I’ve just released an implementation of Microsoft’s IDE-independent Language Server Protocol for Elixir. It adds language support ...
1144 53690 245
New
vrod
I am using the Starship cross-shell prompt – it seems pretty nice, but I get some errors: [WARN] - (starship::utils): Executing command ...
New
Emily
I have VueJS GUIs with the project generated using Webpack. I have Elixir modules that will need to be used by the VueJS GUIs. I forese...
New
Qqwy
Original source of discussion: This topic on the Pragmatic Programmers’ Functional Web Development with Elixir, OTP, and Phoenix forum. ...
New
ashish173
I am using Ecto timestamps with postgres, I can see the timestamps() use the :naive_dateime but for my use case I wanted to store the ti...
New
marick
I had some trouble figuring out how to make many-to-many associations work. Once I got it working, I wrote a blog post. Because I’m a nov...
New
jononomo
For some reason my phoenix channels are working for me in my local dev environment, but as soon as I deploy via Docker, I get a 403 error...
New
sergio
Kind of like when jquery came out, it was super necessary. Existing drag and drop libraries have a bunch of baggage to support old browse...
New

We're in Beta

About us Mission Statement