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

Bug with Hammox when upgrading Elixir #146

Open
epinault opened this issue Jun 3, 2024 · 0 comments
Open

Bug with Hammox when upgrading Elixir #146

epinault opened this issue Jun 3, 2024 · 0 comments

Comments

@epinault
Copy link

epinault commented Jun 3, 2024

Hello,

I am upgrading from elixir 1.15 to 1.16.3, OTP version is the same 26.2.5

yet test that were passing in 1.15 are now failing with this error.

any idea what the issue might be?

** (FunctionClauseError) no function clause matching in Hammox.TypeEngine.match_type/2

 The following arguments were given to Hammox.TypeEngine.match_type/2:

     # 1
     %{}

     # 2
     {:type, {87, 25}, :record, [{:atom, {87, 26}, :set}, {:type, {87, 30}, :field_type, [{:atom, {87, 30}, :segs}, {:remote_type, 0, [{:atom, 0, :sets}, {:atom, 0, :segs}, [{:type, {57, 16}, :term, []}]]}]}]}

 Attempted function clauses (showing 10 out of 93):

     def match_type(value, {:type, _, :union, union_types} = union) when is_list(union_types)
     def match_type(_value, {:type, _, :any, []})
     def match_type(value, {:type, _, :none, []} = type)
     def match_type(value, {:type, _, :atom, []}) when is_atom(value)
     def match_type(value, {:type, _, :atom, []} = type)
     def match_type(value, {:type, _, :map, :any}) when is_map(value)
     def match_type(value, {:type, _, :pid, []}) when is_pid(value)
     def match_type(value, {:type, _, :pid, []} = type)
     def match_type(value, {:type, _, :port, []}) when is_port(value)
     def match_type(value, {:type, _, :port, []} = type)
     ...
     (83 clauses not shown)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant