-
-
Notifications
You must be signed in to change notification settings - Fork 142
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
CaseClauseError with Elixir 1.10 #387
Comments
This solution is nonsatisfying, but remove your PLT and PLT hash file, then rerun, and it will work. |
I do not have any PLT or PLT hash file in |
this happens often to us as well since switching to elixir 1.10 |
The same in my project, the error started happening with Elixir 1.10+. |
@datafoo try |
@datafoo Also try removing the PLTs in ~/.mix/. I'm on macOS (homebrew) and I think sometimes erlang upgrades without a version change break dialyzer. Removing those fixes it for me, it is annoying though since dialyzer has to rebuild PLTs from scratch. |
On macOS with Brew installed Elixir 1.10 and Erlang 23 and this seems to be the magic fix. |
I'm seeing the same error in this CI:
https://github.com/jshmrtn/hygeia/runs/2389642977?check_suite_focus=true Clearing the cache solved the issue. |
Environment
Current behavior
Running
mix dialyzer
throws aCaseClauseError
when using Elixir 1.10.You can reproduce with the minimal test project https://github.com/datafoo/elixir-dialyzer-issue-CaseClauseError. Note that I set my development environment with
nix-shell
, hence the filesnixpkgs.nix
,default.nix
andshell.nix
.Expected behavior
Running
mix dialyzer
should not throw an error. When using Elixir 1.9.4, there is no errors.The text was updated successfully, but these errors were encountered: