brandynbennett
Dialyzer "Could not get Core Erlang code for"
Here’s a repo with an example GitHub - brandynbennett/dialyzer_polyn_issue · GitHub
I’ve made a library called “polyn” and am trying to include it an my app. However my app uses dialyzer and won’t pass anymore and I can’t figure it out. I’ve done mix deps.clean --all && mix deps.get && mix deps.compile I’ve done mix dialyzer.clean . None of that seems to help. Same thing happens on a brand new project. Something about the library seems to be off. The error dialyzer gives me when I run mix dialyzer.build is
dialyzer.run error: Analysis failed with error:
Could not scan the following file(s):
Could not get Core Erlang code for: dialyzer_polyn_issue/_build/dev/lib/polyn/ebin/Elixir.Polyn.Tracing.beam
dialyzer_polyn_issue/_build/dev/lib/polyn/ebin/Elixir.Polyn.beam
...every module in the library
When I look inside _build/dev/lib/polyn/ebin/ I see all the *.beam files so I don’t understand why it can’t get them. Using versions:
erlang 25.1
elixir 1.14.0-otp-25
Marked As Solved
al2o3cr
When a dependency is installed by mix, Mix.env is normally :prod - you can change that with the env option
That causes polyn’s mix.exs to omit the metadata (line 14):
Also Liked
jeremyjh
Sorry, I lied. I see tons of errors, just not during analysis, but yes if I glance up a bit yes I see those same errors building the PLT. Not sure what’s going on here. I was also able to reproduce in a non-ASDF build using
this image hexpm/elixir:1.14.3-erlang-25.2.2-ubuntu-jammy-20221130
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
- #advent-of-code
- #elixirconf-us
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #performance








