-
Notifications
You must be signed in to change notification settings - Fork 196
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
Dialyzer error: Function MyAppWeb.OpenApiSpex.Plug.RenderSpec.init/1 does not exist
#505
Comments
Notice the module name: That suggests there's a surrounding If that's the case, changing it from scope/4 to scope/3 should fix it. edit: Updated to obfuscate module names |
Ah damn.
scope "/", MyAppWeb do
pipe_through :browser
get "/", PageController, :index
end Removing that module name and fully qualifying the controllers gets rid of the dialyzer error, thank you a ton! It's probably not necessary, but would y'all accept a minor doc change PR to clarify that users adding |
Yes please! |
Function PlBetsWeb.OpenApiSpex.Plug.RenderSpec.init/1 does not exist
Function MyAppWeb.OpenApiSpex.Plug.RenderSpec.init/1 does not exist
Done! #507 |
Elixir: 1.14.0
Phoenix: 1.6.11
Following the docs exactly, I added the following to one of my router scopes like so:
However, when running
mix dialyzer
, this gives an error:I know this isn't actually the case, because
RenderSpec.init/1
does exist when I CMD+click on it in my editor.Dialyxir has a wiki page on using Dialyxir with Phoenix that mentions how to avoid spurious errors, but it's from 2019 and I don't know if any of it is required anymore.
Any ideas on what I might be doing incorrectly? 🤔
The text was updated successfully, but these errors were encountered: