brandynbennett

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

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):

https://github.com/SpiffInc/polyn/blob/7565047566106f02ab289ca0e4a681e257701807/polyn_elixir_client/mix.exs#L14

Also Liked

jeremyjh

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

Where Next?

Popular in Questions Top

rms.mrcs
Hi, I need to transform a list of numbers into a map where the keys are the indexes and the values are the original values of the list. ...
New
RisingFromAshes
I’ve read in another post that it may be possible with a router helper - but I couldn’t find an appropriate one, and tbh, I’m still just ...
New
qwerescape
Is there a way to get the call stack or stack trace at any point in the code? Not from exceptions, but an expression that returns how the...
New
jononomo
I am trying to figure out how Mix knows whether the environment is test, dev, or prod – where is this set? Thanks.
New
_russellb
I want to try my hand at web scraping. What tools/libraries do I need to use. I’m hoping to turn this into something professional so don’...
New
sergio
In Ruby, I can go: User.find_by(email: "foobar@email.com").update(email: "hello@email.com") How can I do something similar in Elixir? ...
New
greenz1
I have a phoenix application from which a user can download multiple(5-6) files of size 1MB. I couldn’t find anything related to sending ...
New
ycv005
I have followed this StackOverflow post to install the specific version of Erlang. And When I am running mix ecto.setup then getting fol...
New
Patoshizzle
After calling mix ecto.create I get this error: 17:00:32.162 [error] GenServer #PID<0.412.0> terminating ** (Postgrex.Error) FATAL...
New
LegitStack
I’m trying to make a websocket server in Phoenix or raw Elixir. I heard about gun, I think I could use cowboy, but since I’m not that sma...
New

Other popular topics Top

vonH
When I run the Plug and I recompile I wind up having to use Ctrl C to quit iex and start again. Witht the help of rlwrap I can use the cu...
New
Emily
I have VueJS GUIs with the project generated using Webpack. I have Elixir modules that will need to be used by the VueJS GUIs. I forese...
New
dokuzbir
I want to highlight html closing tags when i click a html tag. That works in .html files but doesnt work for html.eex templates. How can...
New
danschultzer
None of the current solutions worked well for me, so I went ahead and built a user management system from scratch. This project took far...
548 29377 241
New
greenz1
I have a phoenix application from which a user can download multiple(5-6) files of size 1MB. I couldn’t find anything related to sending ...
New
Nvim
Anybody knows a comprehensive comparison of Django and Phoenix, thanks for the help. Where are they similar? Where do they differ the m...
New
stefanluptak
Hello everybody, usually, I use a 29" ultra-wide monitor for VSCode which can easily accomodate explorer (files panel) + file with code ...
New
klo
Got a question about when to concat vs. prepending items to list then reversing to achieve appending. So i know lists boil down to [1 | ...
New
malloryerik
Hi, this is for people who, like me, have had some friction using .html.heex templates in VSCode. The solution seems to be, in a hyphena...
New
svb
Hi! Currently I want to submit a form by pressing the Enter key. However, since my input field is of type “textarea” this is just adds a...
New

We're in Beta

About us Mission Statement