Closed Rauulll closed 4 months ago
Recent Erlang versions introduced a dynamic() type that conflicted with Ecto types. You need to update your Ecto.
but wouldn't it mean that earlier versions of Erlang would still compile. I'm using asdf to manage my project so as to carter for such conflicts.
Which Erlang version do you see when you run “iex”?
Erlang/OTP 24 [erts-12.3.2.16] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] [jit]
It seems there is something wrong with your Erlang installation. Probably two different Erlangs were installed in the same directory.
you can see in your error message that the stdlib app in Erlang is 5.2, but the latest stdlib version for Erlang 24 is 3.x: https://github.com/erlang/otp/blob/maint-24/lib/stdlib/vsn.mk
which is why you see an error. Somewhere you have s more recent Erlang version.
when i run erl on root directory what is returned is
Erlang/OTP 26 [erts-14.2.5.2] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] [jit:ns]
which uses stdlib 5.2. But wheb i run it on project dir, it states it's using otp 24, i guess the asdf versions are being honoured. I'll look into it.
Elixir version
elixir 1.14.4-otp-24
Database and Version
16.3
Ecto Versions
ecto "~> 3.7.0" and ecto_sql "~> 3.7.1"
Database Adapter and Versions (postgrex, myxql, etc)
postgrex "~> 0.16.4" and myxql "~> 0.4.5"
Current behavior
`def project do [ app: :automzero, version: app_version(), elixir: "~> 1.5", elixirc_paths: elixirc_paths(Mix.env()), compilers: [:phoenix] ++ Mix.compilers(), start_permanent: Mix.env() == :prod, aliases: aliases(), deps: deps(), releases: [ automzero: [ applications: [automzero: :permanent], include_erts: true, include_src: false, steps: [:assemble, :tar] ] ] ] end
defp deps do [
override because scrivener_html ~> 1.8 requires phoenix < 1.5.0
end `
mix deps.get
mix iex -S mix phx.server
Error i'm getting:
Expected behavior
Project to launch server but running into :ecto error.