Skip to content

Dilayzer error: no local return for Soap.init_model/2 #121

@stevencch99

Description

@stevencch99

I want to thank you for this useful project at first 🙌

But I ran into Dialyzer warning which needs your help to fix.
Here is my codebase, with a very simple function call of Soap.init_model/2, and everything works except of dialyzer check :(

  @wsdl_url "https://some/service.asmx?wsdl"

  @impl true
  def init_wsdl do
    Soap.init_model(@wsdl_url, :url)
  end

The error message:

Total errors: 1, Skipped: 0, Unnecessary Skips: 0
done in 0m3.73s
MyApp.ex:15:no_return
Function init_wsdl/0 has no local return.
________________________________________________________________________________
done (warnings were emitted)
Halting VM with exit status 2

I have tried resetting the PLT build, and this error causes the CI process on GitHub Action to fail as well, so it is not specific to my machine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions