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

do...rescue causes crash #34

Open
turion opened this issue Dec 9, 2020 · 2 comments
Open

do...rescue causes crash #34

turion opened this issue Dec 9, 2020 · 2 comments

Comments

@turion
Copy link
Contributor

turion commented Dec 9, 2020

defmodule Foo do
  @spec foo() :: any()

  def foo() do
    raise "Oh noez"
  rescue
    e -> IO.inspect(e)
  end
end
$ mix type
** (FunctionClauseError) no function clause matching in ExType.CustomEnv.save_def/3    
    
    The following arguments were given to ExType.CustomEnv.save_def/3:
    
        # 1
        ExType.Module.Foo
    
        # 2
        {:foo, [line: 4], []}
    
        # 3
        [do: {:raise, [line: 5], ["Oh noez"]}, rescue: [{:->, [line: 7], [[{:e, [line: 7], nil}], {{:., [line: 7], [{:__aliases__, [counter: -576460752303423325, line: 7], [:IO]}, :inspect]}, [line: 7], [{:e, [line: 7], nil}]}]}]]
    
    Attempted function clauses (showing 1 out of 1):
    
        def save_def(module, call, [do: block])
    
    lib/ex_type/custom_env.ex:129: ExType.CustomEnv.save_def/3
    lib/foo.ex:4: (module)
    (stdlib 3.12) erl_eval.erl:680: :erl_eval.do_apply/6
@turion
Copy link
Contributor Author

turion commented Dec 9, 2020

I need to solve #35 first.

turion pushed a commit to turion/ex_type that referenced this issue Dec 9, 2020
@turion
Copy link
Contributor Author

turion commented Dec 9, 2020

It turned out I could solve it without solving #35

turion pushed a commit to turion/ex_type that referenced this issue Dec 10, 2020
turion pushed a commit to turion/ex_type that referenced this issue Dec 10, 2020
turion pushed a commit to turion/ex_type that referenced this issue Dec 25, 2020
turion pushed a commit to turion/ex_type that referenced this issue Dec 25, 2020
turion pushed a commit to turion/ex_type that referenced this issue Dec 25, 2020
turion pushed a commit to turion/ex_type that referenced this issue Dec 25, 2020
turion pushed a commit to turion/ex_type that referenced this issue Dec 25, 2020
turion pushed a commit to turion/ex_type that referenced this issue Dec 26, 2020
turion pushed a commit to turion/ex_type that referenced this issue Dec 26, 2020
turion pushed a commit to turion/ex_type that referenced this issue Dec 26, 2020
turion pushed a commit to turion/ex_type that referenced this issue Dec 26, 2020
turion pushed a commit to turion/ex_type that referenced this issue Dec 26, 2020
turion pushed a commit to turion/ex_type that referenced this issue Feb 24, 2021
turion pushed a commit to turion/ex_type that referenced this issue Feb 24, 2021
turion pushed a commit to turion/ex_type that referenced this issue Feb 24, 2021
turion pushed a commit to turion/ex_type that referenced this issue Feb 24, 2021
turion pushed a commit to turion/ex_type that referenced this issue Feb 24, 2021
turion pushed a commit to turion/ex_type that referenced this issue Feb 14, 2022
turion pushed a commit to turion/ex_type that referenced this issue Feb 14, 2022
turion pushed a commit to turion/ex_type that referenced this issue Feb 14, 2022
turion pushed a commit to turion/ex_type that referenced this issue Feb 14, 2022
turion pushed a commit to turion/ex_type that referenced this issue Feb 14, 2022
turion pushed a commit to turion/ex_type that referenced this issue Feb 14, 2022
turion pushed a commit to turion/ex_type that referenced this issue Feb 14, 2022
turion pushed a commit to turion/ex_type that referenced this issue Feb 14, 2022
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