pejrich

pejrich

Getting a weird error message in Mix i've not see before. "Because your app depends on XXX empty"

I was updating my Rustler from 0.25 to 0.27, and when I ran mix deps.get, I got the following message which i’ve not seen before. Usually when there’s a dependency mismatch, it’ll state which packages are clashing and over what version they disagree. But this doesn’t have any of that info. I tried removing my mix.lock, and runnning mix deps.clean. If I remove rustler entirely from my mix.exs then it’ll run, and if my rustler is 0.25 it’ll run, but when I set it to 0.27 it fails.

Mix.ex

...
{:rustler, "~> 0.27.0"},
...
$ mix deps.get
Resolving Hex dependencies...
Resolution completed in 0.03s
Because your app depends on rustler empty which doesn't match any versions, version solving failed.
** (Mix) Hex dependency resolution failed

I can’t add the bold and code formatting, but the error message appears like this: “Because your app depends on rustler empty which doesn’t match any versions, version solving failed.”

EDIT:

It also happens if I try to change {:httpoison, "~> 1.0"}, to {:httpoison, "~> 2.0"},

Because your app depends on httpoison empty which doesn’t match any versions, version solving failed.

Also, your app here is verbatim, not something i’ve replaced to generalize it.

Most Liked

LostKobrakai

LostKobrakai

karolsluszniak

karolsluszniak

For me it was a local dependency added using path: "vendor/some-dep" in deps in mix.exs. It had a conflicting requirement and it resulted in <dep> empty from mix deps.get. Btw mix deps.tree did help to nail it down so thx @BradS2S!

pejrich

pejrich

If I add override: true to both rustler and httpoison it does finally work, but i’m still unsure why it was caused or how to fix it properly

Nicd

Nicd

This was seen on IRC yesterday also, pasting the relevant logs:

10:47:42 <Nicd> I was suspicious of that error message but it’s literally what you said :smiley: https://usercontent.irccloud-cdn.com/file/G9t4aRmi/Screenshot%202023-03-09%20at%2010.47.17.png

10:48:13 <josevalim> Nicd: this is a bug in the hex resolver, i will investigate

10:54:04 <josevalim> here is a minimal example that reproduces the phoenix empty bug:

10:54:07 <josevalim> Snippet | IRCCloud

10:55:58 <josevalim> serafeim: i know what is happening. the scrivener_html does not allow phoenix 1.7. so there is an error but the error message is unclear

So I guess there are conflicting package requirements (some other package doesn’t allow that version of rustler or httpoison), but the error message is bugged.

BradS2S

BradS2S

I’m guessing one of your transitive dependencies is asking for a version of a direct dependency that Mix sees as having no middle ground.

For the masochistic there’s always: mix deps.tree

Where Next?

Popular in Questions Top

joaquinalcerro
Hi there, I am working with Ecto-Postgresql and I need to call all of the records from a specific table but the table has 40,000 record...
New
fireproofsocks
I’m working on defining a simple Ecto schema for a table (in PostGres), but I don’t see where I can define a column as NOT NULL. Conside...
New
sacepums
Hey guys. I'm new to elixir and im really stocked about it. But I ran into a bit of problem - I need to convert a date sting, for examp...
New
nsuchy
Hi. I’ve noticed that Windows Powershell has it’s own IEX command and you cannot access Elixir’s IEX due to the conflict. This isn’t a cr...
New
vertexbuffer
Hello, can anybody help here..? I have a list of players and I what to delete an element, but every for loop the list is reverting to ori...
New
makeitrein
Hey all, just started picking up Elixir last week and am writing a scraper as a learning project. Baby step #1 is extracting the number ...
New
fireproofsocks
Forgive me if this is obvious, but how does one delete a database record WITHOUT selecting it first? https://hexdocs.pm/ecto/Ecto.Repo.h...
New
baxterw3b
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
Codball
Mix format works fine if run from the cmd. I’ve followed this to facilitate the implementation into VSC which involves downloading an ext...
New
Qqwy
Original source of discussion: This topic on the Pragmatic Programmers' Functional Web Development with Elixir, OTP, and Phoenix forum. ...
New

Other popular topics Top

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
William
I would like to know that is there any online source for learning Phoenix Framework for building E-Commerce Store? Any advantage on build...
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
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
lastday4you
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
mcarvalho
What is the difference between System.get_env and Application.get_env? For example, what are best practices to use one versus another.
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
stefanluptak
Hello everybody, usually, I use a 29" ultra-wide monitor for VSCode which can easily accomodate explorer (files panel) + file with code ...
New
Qqwy
Original source of discussion: This topic on the Pragmatic Programmers' Functional Web Development with Elixir, OTP, and Phoenix forum. ...
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

We're in Beta

About us Mission Statement