sodapopcan

sodapopcan

Wallaby with Phoenix 1.16.rc0

Has anyone successfully gotten Wallaby to work with Phoenix 1.16-rc.0?

It’s complaining that it can’t use mime:

Failed to use "mime" (version 2.0.1) because
  plug (version 1.12.1) requires ~> 1.0 or ~> 2.0
  swoosh (version 1.5.0) requires ~> 1.1 or ~> 2.0
  tesla (versions 1.3.0 to 1.3.3) requires ~> 1.0
  mix.lock specifies 2.0.1

** (Mix) Hex dependency resolution failed, change the version requirements
of your dependencies or unlock them (by using mix deps.update or mix deps.unlock).
If you are unable to resolve the conflicts you can try overriding with
{:dependency, "~> 1.0", override: true}

So, as suggested by the output, I add an override mime with:

defp deps do
  # ...
  {:mime, "~> 2.0.1", override: true},
  # ...
end

This leads to further complaints about telemetry (twice):

Failed to use "telemetry" (version 1.0.0) because
  cowboy_telemetry (version 0.4.0) requires ~> 1.0
  db_connection (version 2.4.0) requires ~> 0.4 or ~> 1.0
  ecto (version 3.7.1) requires ~> 0.4 or ~> 1.0
  ecto_sql (version 3.7.0) requires ~> 0.4.0 or ~> 1.0
  phoenix (version 1.6.0-rc.0) requires ~> 0.4 or ~> 1.0
  phoenix_live_view (version 0.16.3) requires ~> 0.4.2 or ~> 1.0
  plug (version 1.12.1) requires ~> 0.4.3 or ~> 1.0
  swoosh (version 1.5.0) requires ~> 0.4.2 or ~> 1.0
  telemetry_metrics (version 0.6.1) requires ~> 0.4 or ~> 1.0
  telemetry_poller (version 1.0.0) requires ~> 1.0
  tesla (versions 1.3.0 to 1.3.2) requires ~> 0.3
  mix.lock specifies 1.0.0


Failed to use "telemetry" (version 1.0.0) because
  cowboy_telemetry (version 0.4.0) requires ~> 1.0
  db_connection (version 2.4.0) requires ~> 0.4 or ~> 1.0
  ecto (version 3.7.1) requires ~> 0.4 or ~> 1.0
  ecto_sql (version 3.7.0) requires ~> 0.4.0 or ~> 1.0
  phoenix (version 1.6.0-rc.0) requires ~> 0.4 or ~> 1.0
  phoenix_live_view (version 0.16.3) requires ~> 0.4.2 or ~> 1.0
  plug (version 1.12.1) requires ~> 0.4.3 or ~> 1.0
  swoosh (version 1.5.0) requires ~> 0.4.2 or ~> 1.0
  telemetry_metrics (version 0.6.1) requires ~> 0.4 or ~> 1.0
  telemetry_poller (version 1.0.0) requires ~> 1.0
  tesla (version 1.3.3) requires ~> 0.4
  mix.lock specifies 1.0.0

** (Mix) Hex dependency resolution failed, change the version requirements of your dependencies or unlock them (by using mix deps.update or mix deps.unlock). If you are unable to resolve the conflicts you can try overriding with {:dependency, "~> 1.0", override: true}

So I try overriding:

defp deps do
  # ...
  {:telemetry_metrics, "~> 0.6", override: true},
  {:telemetry_poller, "~> 1.0", override: true},
  # ..
end

(…because {:telemetry} doesn’t exist)

This has no effect.

I’ve also tried $ rm -rf deps && mix deps.get to no avail.

$ mix -f deps mix.lock && mix deps.get causes an indefinite hand on Resolving hex dependencies...

I realize that release candidates are going to have problems but I’m just wondering if anyone has worked around this. I’m gun-shy about opening an issue to to 1.16 being in rc. Also, I can’t exclusively use LiveView tests as my app has a JS widget with drag and drop that LiveView tests don’t support.

Thanks!

Marked As Solved

mhanberg

mhanberg

Expert LSP Core Team

Hi, I think this is due to one of our dependencies using the Tesla library. That library was just bumped to relax the Tesla version constraint.

I’ll update Wallaby and cut a release.

Also Liked

mhanberg

mhanberg

Expert LSP Core Team

I released v0.29.0. Let me know if that works out for you.

Where Next?

Popular in Questions Top

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
chrisalley
ExUnit now has describe blocks which is a welcome addition coming from RSpec. In the docs, it states that nested hierarchies of describe ...
New
JulienCorb
I am trying to implement my new.html.eex file to create new posts on my website. new.html.eex: <h1>Create Post</h1> <...
New
beno
I will often find my self writing things similar to: case some_value do nil -> something() "" -> something() _ -> someth...
New
aalberti333
As the title describes, I’m trying to run Enum.map() over a list of key/value pairs, where the value is a map. My data looks like this: ...
New
vegabook
I'm brand new to Phoenix and I have stripped one of the demo applications to the bone. I just want to get an svg up on the screen. Here i...
New
nobody
Hi! In PHP: $SERVER['SERVERADDR'] - in Elixir? Searched the docs for ip address and the web, no good results. Thanks!
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
WestKeys
Currently suffering from paralysis by [HTTP client] analysis. This is rather unusual in Elixirland as there tends to be consensus on the ...
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

Other popular topics Top

marius95
Hello everyone, I try to use an Javascript Event Handler in my root.html.leex file. Therefore I created a function in the app.js file: ...
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
sen
Hi All, I set a environment variables in dev.exs , like below code. when i start server, how can i set the ${enable} value? thanks. d...
New
JakeBecker
TL;DR: I’ve just released an implementation of Microsoft’s IDE-independent Language Server Protocol for Elixir. It adds language support ...
1144 53578 245
New
AstonJ
Posting this to see if we can make things easier for people to get into Neovim. If you use Neovim and have a favourite distro please let ...
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
chrismccord
This release brings a number of exciting features, including integration with the new Phoenix LiveDashboard and Phoenix LiveView. There h...
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
SoCreat
i’m a new one to elixir which editor can i use vs code? or atom? Thanks! :smiley:
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