-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clause cannot match warning on line 1 after upgrading to elixir 1.6 #7224
Comments
I think that is because a bug was fixed. There is overlap in the calls between both of the |
Good catch. I am on it. Let's see what we can do. |
Fixed on Phoenix and back-ported to v1.3 there. |
How can I update my phoenix 1.3 dep to use this commit? I ran Also tried
|
SInce it was not released yet, you need to move to a git dependency. |
Is there a way to do that while making it so that my dependency that relies on phoenix 1.0 < x < 1.3 still work? |
Try that out and mix should guide you to use the override: true option. |
You will also need to pass the branch: "v1.3" option. |
ok I'm using phoenixframework/phoenix@c7a6569 and I'm still getting:
|
I am trying to upgrade to Elixir 1.7 from 1.5.2 and still getting this warning (Phoenix 1.3)
|
@ijunaid8989 You should post support requests to the Elixir Forums, and for your issue you should definitely post your router.ex file in the post (with proper code fences). :-) |
Getting this error on a fresh warning: this clause cannot match because a previous clause at line 1 always matches
lib/app_web/router.ex:1
|
Environment
1.6.0
and20
10.13.1
Current behavior
When compiling, the following module gives the warnings:
Here's the full module:
There's no warning in Elixir
1.5.2
and commenting out the line25
(resources("/listings", ListingController, only: [:index, :show])
) also removes the warning.I'm also not sure if this belongs here or in Phoenix.
Expected behavior
Give warning on the proper line or no warning at all.
The text was updated successfully, but these errors were encountered: