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

9mm
I am constructing a JSON object (map) and I need to conditionally set a field. I’m trying to write proper elixir-way code… and I’m at a l...
New
myronmarston
The Elixir Typespec docs show the following syntax for keyword lists in typespecs: # ... | [key: type] # keyword lists...
New
JeremM34
Hello, how can I check the Phoenix version ? Thanks !
New
shahryarjb
Hello, I have map which I want to convert it to string like this: the map: %{last_name: "tavakkoli", name: "shahryar"} the string I ne...
New
jerry
Good day to you all. I have been struggling to get a query involving like and ilike to work. Can anyone assist me on this, please? pro...
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
vegabook
I’m brand new to Phoenix and I have stripped one of the demo applications to the bone. I just want to get an svg up on the screen. Here i...
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
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
hariharasudhan94
I would like to know what is the best IDE for elixir development?
New

Other popular topics Top

malloryerik
Hi, this is for people who, like me, have had some friction using .html.heex templates in VSCode. The solution seems to be, in a hyphena...
New
fireproofsocks
Forgive me if this is obvious, but how does one delete a database record WITHOUT selecting it first? Ecto.Repo — Ecto v3.14.0 has exampl...
New
freewebwithme
Using vs code and installed ElixirLS: support and debugger. And I got an error popped up on start up says Failed to run ‘elixir’ comma...
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
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
Qqwy
Update: How to use the Blogs & Podcasts section You can post links to your blog posts or podcasts either in one of the Official Blog...
3271 126479 1222
New
dogweather
I wrote this comment on r/haskell, and it’s not popular there. :wink: But I think I’m on to something… Haskell reminds me of Java, and e...
New
svb
Hi! Currently I want to submit a form by pressing the Enter key. However, since my input field is of type “textarea” this is just adds a...
New
lanycrost
Hi everyone! I need implement if…else if…else condition from my elixir code, and anymore of this control flow structures not work proper...
New

We're in Beta

About us Mission Statement