Skip to content
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

Phoenix Verified routes cause The operator '==' on line _ requires arguments of compatible types. #153

Open
cschmatzler opened this issue Dec 22, 2022 · 1 comment
Labels
bug Something isn't working triage Needs assessment whether a bug, enhancement, duplicate, ...

Comments

@cschmatzler
Copy link

Hi!

Checking out this project and it looks really interesting.
Unfortunately, I ran into an issue where having a verified route from the latest Phoenix release always causes

lib/_/web/live/__live.ex: The operator '==' on line __ requires arguments of compatible types.
However, it has arguments of type binary() and binary()

The relevant code is simply a HEEx template with ~p"/dashboard" on the offending (to Gradient) line. I haven't dug into the specifics of verified routes, so that's all I got for now.

@erszcz
Copy link
Member

erszcz commented Dec 22, 2022

Hi @cschmatzler!

The arguments of type binary() and binary() part looks really puzzling, indeed. It seems to be an upstream (Gradualizer) bug, but we'll have to dig into it to tell with certainty. Thanks for raising this!

@erszcz erszcz added bug Something isn't working triage Needs assessment whether a bug, enhancement, duplicate, ... labels Dec 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage Needs assessment whether a bug, enhancement, duplicate, ...
Projects
None yet
Development

No branches or pull requests

2 participants