tielur
Help with Dialyzer Output: Function ExUnit.Assertions.flunk/1 does not exist
I’m getting a few things from my dialyzer output that I’m not sure how I can fix.
:0:unknown_function
Function ExUnit.Assertions.flunk/1 does not exist.
________________________________________________________________________________
:0:unknown_function
Function ExUnit.Callbacks.__merge__/3 does not exist.
________________________________________________________________________________
:0:unknown_function
Function ExUnit.CaseTemplate.__proxy__/2 does not exist.
Most Liked
jeremyjh
You don’t really want to use transitive - thats just there for backwards compatibility. By default your app_tree is included in your deps, and since 1.4 Elixir has started your deps for you so they are all in your app tree. :ex_unit won’t be added though. If you want to dialyze in MIX_ENV=test you need to either add ignores for those lines, or add ex_unit separately using dialyzer: [plt_add_apps: [:ex_unit]]
NobbZ
If Circle runs on linux, it should totally be sufficient to use this line in the script:
MIX_ENV=dev mix dialyzer
Everything else will be run in test, but that line “overrides” the MIX_ENV temporary.
sneako
I think adding ExUnit to plt_add_apps as described here in the readme GitHub - jeremyjh/dialyxir: Mix tasks to simplify use of Dialyzer in Elixir projects. · GitHub would get rid of the errors, but it is strange that the exunit functions are there to begin with…
Are you using ExUnit in your application code? Or maybe running with MIX_ENV=test?
Last Post!
rubynho
Hey just found this thread very helpful still today, solved the exactly same problem I was having. For future people coming here just keep in mind setting the MIX_ENV to dev will cause the hole project to be compiled again, which maybe is not desired.
To me including :ex_unit in plt_add_apps seems better if the project is only/already compiled with MIX_ENV set to test.
Popular in Questions
Other popular topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #elixirconf-us
- #advent-of-code
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #hex
- #security









