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
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 ![]()
0
Popular in Questions
I am trying to figure out how Mix knows whether the environment is test, dev, or prod – where is this set?
Thanks.
New
Lets say I have map like this fetching from my database
%{"_id" => #BSON.ObjectId<58eb1a7a9ad169198c3dXXXX>, "email" => ...
New
I wanted to check elixir version in phoenix because i found that my elixir is 1.5 but when i use Enum.chunk_by it said the function is un...
New
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
I want to highlight html closing tags when i click a html tag. That works in .html files but doesnt work for html.eex templates. How can...
New
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
Hello all!
I am typing this post from my new MacBook Pro with the M1 chip. I’m loving it so far, and will probably use it as my daily dr...
New
Other popular topics
Hi folks,
Few months ago I have announced the proof-of-concept of the library to manipulate the browsers DOM objects directly from Elixi...
New
Hi guys, i’m new in the Elixir world, and i have to say, that i love it!
i’m having some problem to understand anonymous functions with ...
New
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
Phoenix 1.4.0 released
Phoenix 1.4 is out! This release ships with exciting new features, most notably
with HTTP2 support, improved deve...
New
Seen any cool LiveView demos, sample apps or examples? Please post them here! :003:
New
i’m a new one to elixir
which editor can i use
vs code? or atom?
Thanks! :smiley:
New
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #elixirconf-us
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #metaprogramming
- #security
- #hex









