Laurent

Laurent

Upgrade to elixir 1.15 broke matrix dependency

Hi
We are currently on elixir 1.14.3, we import matrix dependency: {:matrix, "~> 0.3.0"},

After upgrading to 1.15.6 there is now an error by starting the application:

error: undefined variable "description"
  /home/me/project/deps/matrix/mix.exs:7: Matrix.Mixfile.project/0

error: undefined variable "package"
  /home/me/project/deps/matrix/mix.exs:8: Matrix.Mixfile.project/0

error: undefined variable "deps"
  /home/me/project/deps/matrix/mix.exs:10: Matrix.Mixfile.project/0

warning: function deps/0 is unused
  /home/me/project/deps/matrix/mix.exs:21: Matrix.Mixfile (module)

warning: function description/0 is unused
  /home/me/project/deps/matrix/mix.exs:26: Matrix.Mixfile (module)

warning: function package/0 is unused
  /home/me/project/deps/matrix/mix.exs:33: Matrix.Mixfile (module)

Error while loading project :matrix at /home/me/project/deps/matrix
** (CompileError) deps/matrix/mix.exs: cannot compile module Matrix.Mixfile (errors have been logged)

Looking at deps/matrix/mix.exs I can see

def project do
    [app: :matrix,
     version: "0.3.2",
     description: description,
     package: package,
     elixir: "~> 1.1",
     deps: deps,
     docs: [extras: []]]
  end

Now if I turn it to:

  def project do
    [app: :matrix,
     version: "0.3.2",
     description: description(),
     package: package(),
     elixir: "~> 1.1",
     deps: deps(),
     docs: [extras: []]]
  end

(just for fun, i.e. calling functions instead) then it compiles.

So it looks like the dependency should be upgraded to support elixir 1.15, or did I misunderstood? I am asking because I cannot find the dependency github, so we probably will have to use another dependency for matrix.

Thx!

Marked As Solved

mayel

mayel

That’s right. I see the github link on that library’s hex.pm page though? And it has a PR for 1.15: upgrading to Elixir 15, and dependencies to latest by fabio-t · Pull Request #9 · twist-vector/elixir-matrix · GitHub

Where Next?

Popular in Questions Top

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
LegitStack
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
quazar
How to set Jason to encode all fields in ecto schema, I don’t care about security and implementing only is taking long list of attributes...
New
minhajuddin
I have seen a lot of code which picks the first element from a list using Enum.at(0) instead of List.first. Is there a reason why people ...
New
chensan
I have a User schema with a :from_id field set to type :string: defmodule TweetBot.Repo.Migrations.CreateUsers do use Ecto.Migration ...
New
chewm
Hi guys, nice to meet you to the whole forum, I’m new here, I’m trying to configure visual studio code for elixir, right now the intellis...
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
lucidguppy
I have a super simple question about elixir - how would I take a file like this foo bar baz and output a new file that enumerates th...
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
joeerl
Hello again - after a longish gap I’ve decided I really must dig into Elixir and see what’s been happening here - so I have a few questio...
New

Other popular topics Top

lessless
I believe there are people here who are dealing with CSV files import on the daily basis, and since Excel is a really popular tool there ...
New
sergio_101
I am VERY much an elixir newbie. I have taken one elixir course and one phoenix course on Udemy. During that course, I saw the instructor...
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
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
aadeshere1
I have a another noob question about loop. Since elixir is immutable, while loop is not directly possible. total = 10 while total != 0 ...
New
alice
Hey, Just curious what are the main benefits of Elixir compared to Clojure? When is Elixir more useful than Clojure and vice versa? Th...
New
qwerescape
Is there a way to get the call stack or stack trace at any point in the code? Not from exceptions, but an expression that returns how the...
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
WestKeys
Currently suffering from paralysis by [HTTP client] analysis. This is rather unusual in Elixirland as there tends to be consensus on the ...
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