bamorim / typed_ecto_schema

A library to define Ecto schemas with typespecs without all the boilerplate code.
https://hexdocs.pm/typed_ecto_schema
Apache License 2.0
271 stars 18 forks source link

Fix CI #44

Closed dvic closed 7 months ago

dvic commented 7 months ago

@bamorim It looks like Code.Typespec.fetch_types(bytecode) returns :error? (TypedEctoSchemaTest.standardise/2 is being fed nil) Any idea why?

bamorim commented 7 months ago

That's a private module that IIRC we were only using for tests (I hope). This also means that it can break xD.

That being said, maybe the compilation is not including typespecs by default and we need to set an option for that?

bamorim commented 7 months ago

Maybe something changed in Elixir 1.14?

bamorim commented 7 months ago

What does :beam_lib.info(beam_bytecode) returns?

bamorim commented 7 months ago

Found this that seems to be related

https://elixirforum.com/t/enable-abstract-code-chunk-in-elixir-1-14/52514

bamorim commented 7 months ago

Which points to https://github.com/elixir-lang/elixir/issues/12300

Sorry for all the messages, on my phone right now.

Need to go to bed now xD