Aetherus
FunctionClauseError on mix deps.get
Recently, I’m working on a Elixir OTP 26 project.
When I typed in the command `mix deps.get`, I got this error message:
** (FunctionClauseError) no function clause matching in String.Chars.Hex.Solver.Constraints.Range."-inlined-__impl__/1-"/1
The following arguments were given to String.Chars.Hex.Solver.Constraints.Range."-inlined-__impl__/1-"/1:
# 1
:target
(hex 2.2.2) String.Chars.Hex.Solver.Constraints.Range."-inlined-__impl__/1-"/1
(elixir 1.15.7) lib/string/chars.ex:3: String.Chars.impl_for/1
(elixir 1.15.7) lib/string/chars.ex:3: String.Chars.impl_for!/1
(elixir 1.15.7) lib/string/chars.ex:22: String.Chars.to_string/1
(hex 2.2.2) lib/hex/mix.ex:205: Hex.Mix.registry_dep_to_def/1
(elixir 1.15.7) lib/enum.ex:1693: Enum."-map/2-lists^map/1-1-"/2
(hex 2.2.2) lib/hex/mix.ex:157: anonymous fn/1 in Hex.Mix.to_lock/1
(elixir 1.15.7) lib/enum.ex:1693: Enum."-map/2-lists^map/1-1-"/2
I can’t upgrade Erlang and Elixir to OTP 27 or higher because of the `:amqp` lib that constantly throws errors on higher OTP version.
This error is thrown even after I completely deleted the _build and the deps folders. Any help?
OS: Pop!_OS 22.04
Elixir: 1.15.7-otp-26
Erlang: 26.2.5.12
Marked As Solved
LostKobrakai
That’s code (a protocol implementation) by hex, not elixir itself:
You could try downgrading hex using mix local.hex [version]
2
Popular in Questions
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
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
I’m hoping you guys can give me some general advice and perhaps code examples if you’re feeling up to it.
I’m very interested in Elixir,...
New
Hi,
is there any work on GUI with Elixir, that is similar to Electron/Javascript? My idea is to bundle Phoenix and BEAM into a single se...
New
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
I would like to know what is the best IDE for elixir development?
New
I have a list say
x = ["23gh", "56kh", "97mh"]
I would like to pass each element to Val in each iteration.
Say, in iteration 1 -------...
New
I’m trying to make a websocket server in Phoenix or raw Elixir. I heard about gun, I think I could use cowboy, but since I’m not that sma...
New
After calling mix ecto.create I get this error:
17:00:32.162 [error] GenServer #PID<0.412.0> terminating
** (Postgrex.Error) FATAL...
New
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
Other popular topics
Here are few pieces of (common) Linux knowledge that we use for reasonably small one server apps. We use Ubuntu but this should work for ...
New
Hello, I get Persian date from my client and convert it to normal calendar like this:
def jalali_string_to_miladi_english_number(persi...
New
How to handle excepions in elixir? Suppose i have A, B, C ,D, E modules. and each module has get() function. A.get() method will call th...
New
In asking this question I am more interested about the expressiveness of the language itself and less concerned about the availability of...
New
I want to try my hand at web scraping. What tools/libraries do I need to use. I’m hoping to turn this into something professional so don’...
New
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
I have a User schema with a :from_id field set to type :string:
defmodule TweetBot.Repo.Migrations.CreateUsers do
use Ecto.Migration
...
New
Hi all,
I've just started learning Elixir and Phoenix Framework, so please pardon my n00bness at this stage.
I'm trying to use Postg...
New
I’m not a pro in using Regex and can’t figure out why the following behaviour happens, especially if we take into account the difference ...
New
Original source of discussion: This topic on the Pragmatic Programmers' Functional Web Development with Elixir, OTP, and Phoenix forum.
...
New







