You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using --format dialyxir on wrongfully typespeced hello world project dialyxir throws an error:
> mix dialyzer
Finding suitable PLTs
Checking PLT...
[:compiler, :elixir, :kernel, :logger, :stdlib]
PLT is up to date!
No :ignore_warnings opt specified in mix.exs and default does not exist.
Starting Dialyzer
[
check_plt: false,
init_plt: '/home/nlocalhost/Development/Projects/free_ship/_build/dev/dialyxir_erlang-26.0_elixir-1.14.4_deps-dev.plt',
files: ['/home/nlocalhost/Development/Projects/free_ship/_build/dev/lib/jelly_notes/ebin/Elixir.JellyNotes.beam',
'/home/nlocalhost/Development/Projects/free_ship/_build/dev/lib/jelly_notes/ebin/Elixir.Web.Application.beam',
'/home/nlocalhost/Development/Projects/free_ship/_build/dev/lib/jelly_notes/ebin/Elixir.Web.beam'],
warnings: [:unmatched_returns, :extra_return, :missing_return, :overspecs,
...]
]
Total errors: 1, Skipped: 0, Unnecessary Skips: 0
done in 0m4.42s
Please file a bug in https://github.com/jeremyjh/dialyxir/issues with this message.
Unknown error occurred: %FunctionClauseError{module: Dialyxir.Warnings.InvalidContract, function: :format_long, arity: 1, kind: nil, args: nil, clauses: nil}
Legacy warning:
lib/jelly_notes.ex:15: Invalid type specification for function 'Elixir.JellyNotes':hello/0.
The success typing is 'Elixir.JellyNotes':hello() -> 'world'
But the spec is 'Elixir.JellyNotes':hello() -> binary()
The return types do not overlap
________________________________________________________________________________
done (warnings were emitted)
Halting VM with exit status 2
Environment
Current behavior
When using
--format dialyxir
on wrongfully typespeced hello world project dialyxir throws an error:Code:
Dialyzer config:
Expected behavior
A long description about an error
The text was updated successfully, but these errors were encountered: