soyjeansoy

soyjeansoy

Can't create a Phoenix project

Environment

  • Elixir version using asdf: 1.14.0-otp-25, 1.15.0-otp-25, 1.15.5-otp-25
  • Elixir version using brew: 1.15.5, otp 26
  • Operating system: mac os 13.5.1

mix hex.info:

Hex:    2.0.6
Elixir: 1.15.5
OTP:    26.0.2

Built with: Elixir 1.14.2 and OTP 23.3

Actual behavior

Changing to different Elixir versions didn’t help when installing the framework.

What I did:

  1. asdf install elixir 1.15.5-otp-25
  2. asdf global elixir 1.15.5-otp-25
  3. mix local.hex --force
  4. mix archive.install hex phx_new

then removed everything with asdf and used brew instead.

both approaches returned the same error:

Resolving Hex dependencies...
** (MatchError) no match of right hand side value: :error
    (hex 2.0.6) lib/hex/solver/package_lister.ex:47: anonymous fn/4 in Hex.Solver.PackageLister.dependencies_as_incompatibilities/4
    (elixir 1.15.5) lib/enum.ex:1693: Enum."-map/2-lists^map/1-1-"/2
    (hex 2.0.6) lib/hex/solver/package_lister.ex:46: Hex.Solver.PackageLister.dependencies_as_incompatibilities/4
    (hex 2.0.6) lib/hex/solver/solver.ex:123: Hex.Solver.Solver.choose_package_version/1
    (hex 2.0.6) lib/hex/solver/solver.ex:25: Hex.Solver.Solver.solve/2
    (hex 2.0.6) lib/hex/solver.ex:53: Hex.Solver.run/5
    (hex 2.0.6) lib/hex/remote_converger.ex:114: Hex.RemoteConverger.run_solver/5
    (mix 1.15.5) lib/mix/dep/converger.ex:141: Mix.Dep.Converger.all/4

I even uninstalled it (mix archive.uninstall phx.new) then doing all the steps again, but still the same error throws up.

Expected behavior

Following the guide from hexdocs (phx v1.7.7) there shouldn’t be any issues at all when installing Phoenix framework.

Marked As Solved

soyjeansoy

soyjeansoy

I think I fixed the problem. So reading from the error message there’s a portion where it’s pointing with hex deps resolver:

(hex 2.0.6) lib/hex/solver/package_lister.ex:47: anonymous fn/4 in Hex.Solver.PackageLister.dependencies_as_incompatibilities/4

I think my .hex is somehow broken (can’t prove), so what I did:

  1. removed .hex and .mix folder
  2. mix local.hex && mix archive.install hex phx_new
  3. running mix phx.new sample_app went fine.

Where Next?

Popular in Questions Top

chokchit
** (DBConnection.ConnectionError) connection not available and request was dropped from queue after 2733ms. You can configure how long re...
New
Tee
can someone please explain to me how Enum.reduce works with maps
New
gshaw
What is the idiomatic way of matching for not nil in Elixir? E.g., First way: defp halt_if_not_signed_in(conn, signed_in_account) when...
New
Patoshizzle
After calling mix ecto.create I get this error: 17:00:32.162 [error] GenServer #PID<0.412.0> terminating ** (Postgrex.Error) FATAL...
New
myronmarston
The Elixir Typespec docs show the following syntax for keyword lists in typespecs: # ... | [key: type] # keyword lists...
New
Fl4m3Ph03n1x
About me? ( if you have nothing better to do than reading about some random guy in the internet :stuck_out_tongue: ) Hello all, this is ...
New
JDanielMartinez
Hi! May someone helps me, please! I have two apps into an umbrella project: the first one is Database, which manages queries, and the se...
New
romenigld
I am trying to run a deploy with docker and I successfully runned with this command: docker build -t romenigld/blog-prod . but when I t...
New
hariharasudhan94
I would like to know what is the best IDE for elixir development?
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

Other popular topics 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
Harrisonl
We have an ECS cluster with 4 services, where each task joins a single cluster, via discovery ECS discovery service. Currently when I de...
New
chrismccord
As promised, the first release candidate of Phoenix 1.3.0 is out! This release focuses on code generators with improved project structure...
New
jononomo
I am trying to figure out how Mix knows whether the environment is test, dev, or prod – where is this set? Thanks.
New
pmjoe
I have a relationship of love and hate with Elixir. Lots of things are just absolutely right, but there are some things that are kind of ...
New
fayddelight
I tried installing elixir 1.11.2 erlang 23.3.4 via asdf in my zsh shell. Enabled the versions locally and globally. When I list them ...
New
boundedvariable
I am going through the kafka architecture. All the features what the kafka is providing are already in Erlang. I would like hear your opi...
New
rms.mrcs
Hi, I need to transform a list of numbers into a map where the keys are the indexes and the values are the original values of the list. ...
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
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

We're in Beta

About us Mission Statement