-
Notifications
You must be signed in to change notification settings - Fork 96
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
(Protocol.UndefinedError) error #142
Comments
Hmm interesting - there's an open PR right now to bump up support for Elixir 1.15 in Sobelow that may fix this issue. Let me look into this a bit more once we push that through! |
Alrighty, the new version of Sobelow supports Elixir 1.15 now - are you still experiencing this issue? I couldn't recreate this issue on my own, so any more context on the offending code would be helpful 🙂 |
Yes, I'm still experiencing this issue unfortunately. The error is a bit confusing, as I said, : notification atom is not used on line 95 anywhere in my code so I have no idea what piece of code is causing this error. Can you give me some pointers on what should I look for? |
You're looking for something like notification.content, possibly in an eex template. If you could find it, and let us know what it is, it should help us add a case to the finding normalization and fix this bug. |
I found the problem... it's a helper function which creates some HTML outside of templates. So, this function creates HTML for notification message and takes in
|
Thanks @krispetek for filing this, I'm seeing the same type of error. |
Thanks for the bump, @realcorvus - I have a potential fix in draft locally that I will try to wrap up here shortly, test it and subsequently push it out. Thanks for the patience all! |
A fix for this has been merged to |
I have a Phoenix 1.7.6 project (Elixir 1.15.2/OTP 26) and when I run
mix.sobelow
I get the following error:Is there a way to find out what is causing this error? Atom
:notification
is mentioned on line 95 but that atom is never used on that line in any of the files I have.The text was updated successfully, but these errors were encountered: